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-ecc_alice.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-ecc_alice.c')
-rw-r--r-- | src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c b/src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c index 7485d5de1..196bdbeeb 100644 --- a/src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c +++ b/src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c | |||
@@ -311,6 +311,8 @@ prepare_client_end_notification (struct AliceServiceSession *session) | |||
311 | struct ClientResponseMessage *msg; | 311 | struct ClientResponseMessage *msg; |
312 | struct GNUNET_MQ_Envelope *e; | 312 | struct GNUNET_MQ_Envelope *e; |
313 | 313 | ||
314 | if (NULL == session->client_mq) | ||
315 | return; /* no client left to be notified */ | ||
314 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 316 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
315 | "Sending session-end notification with status %d to client for session %s\n", | 317 | "Sending session-end notification with status %d to client for session %s\n", |
316 | session->status, | 318 | session->status, |