aboutsummaryrefslogtreecommitdiff
path: root/src/set/gnunet-service-set_union.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/set/gnunet-service-set_union.c')
-rw-r--r--src/set/gnunet-service-set_union.c23
1 files changed, 2 insertions, 21 deletions
diff --git a/src/set/gnunet-service-set_union.c b/src/set/gnunet-service-set_union.c
index c3c14f1ba..8c0c52d64 100644
--- a/src/set/gnunet-service-set_union.c
+++ b/src/set/gnunet-service-set_union.c
@@ -1367,25 +1367,6 @@ send_client_element (struct Operation *op,
1367 1367
1368 1368
1369/** 1369/**
1370 * Destroy remote channel.
1371 *
1372 * @param op operation
1373 */
1374void destroy_channel (struct Operation *op)
1375{
1376 struct GNUNET_CADET_Channel *channel;
1377
1378 if (NULL != (channel = op->channel))
1379 {
1380 /* This will free op; called conditionally as this helper function
1381 is also called from within the channel disconnect handler. */
1382 op->channel = NULL;
1383 GNUNET_CADET_channel_destroy (channel);
1384 }
1385}
1386
1387
1388/**
1389 * Signal to the client that the operation has finished and 1370 * Signal to the client that the operation has finished and
1390 * destroy the operation. 1371 * destroy the operation.
1391 * 1372 *
@@ -1467,7 +1448,7 @@ maybe_finish (struct Operation *op)
1467 { 1448 {
1468 op->state->phase = PHASE_DONE; 1449 op->state->phase = PHASE_DONE;
1469 send_client_done (op); 1450 send_client_done (op);
1470 destroy_channel (op); 1451 _GSS_operation_destroy2 (op);
1471 } 1452 }
1472 } 1453 }
1473} 1454}
@@ -1896,7 +1877,7 @@ handle_union_p2p_full_done (void *cls,
1896 op->state->phase = PHASE_DONE; 1877 op->state->phase = PHASE_DONE;
1897 GNUNET_CADET_receive_done (op->channel); 1878 GNUNET_CADET_receive_done (op->channel);
1898 send_client_done (op); 1879 send_client_done (op);
1899 destroy_channel (op); 1880 _GSS_operation_destroy2 (op);
1900 return; 1881 return;
1901 } 1882 }
1902 break; 1883 break;