-handle disconnect case more nicely
[oweals/gnunet.git] / src / scalarproduct / gnunet-service-scalarproduct-ecc_bob.c
index 4a1e9cbd0e1db0fea4ec4aa84c83879dc99aadca..9d0bf57b13aa063ba3f9fb2b84415fa0c55548ef 100644 (file)
@@ -419,6 +419,8 @@ prepare_client_end_notification (struct BobServiceSession *session)
   struct ClientResponseMessage *msg;
   struct GNUNET_MQ_Envelope *e;
 
+  if (NULL == session->client_mq)
+    return; /* no client left to be notified */
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Sending session-end notification with status %d to client for session %s\n",
               session->status,