summaryrefslogtreecommitdiff
path: root/src/notification_service.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/notification_service.c')
-rw-r--r--src/notification_service.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/notification_service.c b/src/notification_service.c
index 2c2bcea..40f3b91 100644
--- a/src/notification_service.c
+++ b/src/notification_service.c
@@ -329,6 +329,10 @@ static int service_thread_main(struct tcb *tcb, struct packet *packet, void *dat
};
DbgPrint("TCB: %p, Packet: %p\n", tcb, packet);
+ if (!packet) {
+ DbgPrint("TCB: %p is terminated\n", tcb);
+ return 0;
+ }
command = packet_command(packet);
if (!command) {