diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-06-27 13:52:31 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-06-27 13:52:31 +0000 |
commit | 7ee0ec4b90a2096226f4dc23f9129fdda1c71488 (patch) | |
tree | 9c0e24ac1b1791ef808bca142039f8d9be601823 /src/scalarproduct/gnunet-service-scalarproduct_bob.c | |
parent | beae62bfc73edc1784efbcbb8efd74c07a057865 (diff) | |
download | gnunet-7ee0ec4b90a2096226f4dc23f9129fdda1c71488.tar.gz gnunet-7ee0ec4b90a2096226f4dc23f9129fdda1c71488.zip |
-handle disconnect case more nicely
Diffstat (limited to 'src/scalarproduct/gnunet-service-scalarproduct_bob.c')
-rw-r--r-- | src/scalarproduct/gnunet-service-scalarproduct_bob.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/scalarproduct/gnunet-service-scalarproduct_bob.c b/src/scalarproduct/gnunet-service-scalarproduct_bob.c index 7341317b7..d0a622a36 100644 --- a/src/scalarproduct/gnunet-service-scalarproduct_bob.c +++ b/src/scalarproduct/gnunet-service-scalarproduct_bob.c | |||
@@ -460,6 +460,8 @@ prepare_client_end_notification (struct BobServiceSession *session) | |||
460 | struct ClientResponseMessage *msg; | 460 | struct ClientResponseMessage *msg; |
461 | struct GNUNET_MQ_Envelope *e; | 461 | struct GNUNET_MQ_Envelope *e; |
462 | 462 | ||
463 | if (NULL == session->client_mq) | ||
464 | return; /* no client left to be notified */ | ||
463 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 465 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
464 | "Sending session-end notification with status %d to client for session %s\n", | 466 | "Sending session-end notification with status %d to client for session %s\n", |
465 | session->status, | 467 | session->status, |