summaryrefslogtreecommitdiff
path: root/src/cadet/cadet_api.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2015-10-02 03:37:41 +0000
committerBart Polot <bart@net.in.tum.de>2015-10-02 03:37:41 +0000
commit7df0c2bc1d40a7d98d590dc796f5b429455a23a7 (patch)
tree653c2e6ebbaabd54572dea5c923389e8b346b61a /src/cadet/cadet_api.c
parent4a51a063b8a4ea7242e67f8eb3aaceea3667663b (diff)
downloadgnunet-7df0c2bc1d40a7d98d590dc796f5b429455a23a7.tar.gz
gnunet-7df0c2bc1d40a7d98d590dc796f5b429455a23a7.zip
- cancel transmit requests before destroying channels, warn API users if not
Diffstat (limited to 'src/cadet/cadet_api.c')
-rw-r--r--src/cadet/cadet_api.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cadet/cadet_api.c b/src/cadet/cadet_api.c
index c1a4807b5..48de33041 100644
--- a/src/cadet/cadet_api.c
+++ b/src/cadet/cadet_api.c
@@ -1683,6 +1683,8 @@ GNUNET_CADET_channel_destroy (struct GNUNET_CADET_Channel *channel)
1683 { 1683 {
1684 /* applications should cancel before destroying channel */ 1684 /* applications should cancel before destroying channel */
1685 GNUNET_break (0); 1685 GNUNET_break (0);
1686 LOG (GNUNET_ERROR_TYPE_WARNING,
1687 "Channel destroyed without cancelling transmission requests\n");
1686 th->notify (th->notify_cls, 0, NULL); 1688 th->notify (th->notify_cls, 0, NULL);
1687 } 1689 }
1688 GNUNET_CADET_notify_transmit_ready_cancel (th); 1690 GNUNET_CADET_notify_transmit_ready_cancel (th);