diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-04-30 11:31:22 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-04-30 11:31:22 +0200 |
commit | ccf723196e9ff7f31a56a8e8ebd8319d07fa17c8 (patch) | |
tree | 0ccec2bc54f5f80f35054dda5a1cfe8202ab522f /src/util/mq.c | |
parent | 82c1ee4d147f28e919d82f87fcd787e719d7e572 (diff) | |
download | gnunet-ccf723196e9ff7f31a56a8e8ebd8319d07fa17c8.tar.gz gnunet-ccf723196e9ff7f31a56a8e8ebd8319d07fa17c8.zip |
eliminate DHT PUT OK message by using MQ feature of calling continuation when transmission is complete
Diffstat (limited to 'src/util/mq.c')
-rw-r--r-- | src/util/mq.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util/mq.c b/src/util/mq.c index 0f9ad9a12..dbcce704d 100644 --- a/src/util/mq.c +++ b/src/util/mq.c | |||
@@ -780,7 +780,9 @@ GNUNET_MQ_notify_sent (struct GNUNET_MQ_Envelope *ev, | |||
780 | GNUNET_SCHEDULER_TaskCallback cb, | 780 | GNUNET_SCHEDULER_TaskCallback cb, |
781 | void *cb_cls) | 781 | void *cb_cls) |
782 | { | 782 | { |
783 | GNUNET_assert (NULL == ev->sent_cb); | 783 | /* allow setting *OR* clearing callback */ |
784 | GNUNET_assert ( (NULL == ev->sent_cb) || | ||
785 | (NULL == cb) ); | ||
784 | ev->sent_cb = cb; | 786 | ev->sent_cb = cb; |
785 | ev->sent_cls = cb_cls; | 787 | ev->sent_cls = cb_cls; |
786 | } | 788 | } |