projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b92cddf
)
cancel potentially dangling reconnect task
author
Christian Grothoff
<christian@grothoff.org>
Mon, 9 Jan 2017 07:30:41 +0000
(08:30 +0100)
committer
Christian Grothoff
<christian@grothoff.org>
Mon, 9 Jan 2017 20:17:21 +0000
(21:17 +0100)
src/nat/nat_api.c
patch
|
blob
|
history
diff --git
a/src/nat/nat_api.c
b/src/nat/nat_api.c
index 5b4c39682b09b647f3a2d794c751cdf34a8145a2..810d3564945d029967862b04fa5b3ef7b859d615 100644
(file)
--- a/
src/nat/nat_api.c
+++ b/
src/nat/nat_api.c
@@
-714,6
+714,11
@@
GNUNET_NAT_unregister (struct GNUNET_NAT_Handle *nh)
GNUNET_MQ_destroy (nh->mq);
nh->mq = NULL;
}
+ if (NULL != nh->reconnect_task)
+ {
+ GNUNET_SCHEDULER_cancel (nh->reconnect_task);
+ nh->reconnect_task = NULL;
+ }
GNUNET_free (nh->reg);
GNUNET_free (nh);
}