diff options
Diffstat (limited to 'src/scalarproduct/gnunet-service-scalarproduct_bob.c')
-rw-r--r-- | src/scalarproduct/gnunet-service-scalarproduct_bob.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/scalarproduct/gnunet-service-scalarproduct_bob.c b/src/scalarproduct/gnunet-service-scalarproduct_bob.c index 79a0e961a..7341317b7 100644 --- a/src/scalarproduct/gnunet-service-scalarproduct_bob.c +++ b/src/scalarproduct/gnunet-service-scalarproduct_bob.c | |||
@@ -497,12 +497,6 @@ cb_channel_destruction (void *cls, | |||
497 | "Peer disconnected, terminating session %s with peer %s\n", | 497 | "Peer disconnected, terminating session %s with peer %s\n", |
498 | GNUNET_h2s (&in->session_id), | 498 | GNUNET_h2s (&in->session_id), |
499 | GNUNET_i2s (&in->peer)); | 499 | GNUNET_i2s (&in->peer)); |
500 | if (NULL != in->cadet_mq) | ||
501 | { | ||
502 | GNUNET_MQ_destroy (in->cadet_mq); | ||
503 | in->cadet_mq = NULL; | ||
504 | } | ||
505 | in->channel = NULL; | ||
506 | if (NULL != (s = in->s)) | 500 | if (NULL != (s = in->s)) |
507 | { | 501 | { |
508 | if (GNUNET_SCALARPRODUCT_STATUS_ACTIVE == s->status) | 502 | if (GNUNET_SCALARPRODUCT_STATUS_ACTIVE == s->status) |
@@ -511,6 +505,12 @@ cb_channel_destruction (void *cls, | |||
511 | prepare_client_end_notification (s); | 505 | prepare_client_end_notification (s); |
512 | } | 506 | } |
513 | } | 507 | } |
508 | if (NULL != in->cadet_mq) | ||
509 | { | ||
510 | GNUNET_MQ_destroy (in->cadet_mq); | ||
511 | in->cadet_mq = NULL; | ||
512 | } | ||
513 | in->channel = NULL; | ||
514 | destroy_cadet_session (in); | 514 | destroy_cadet_session (in); |
515 | } | 515 | } |
516 | 516 | ||