commit 710e1bc2eaf88a624c09e53c9b3280b842ce0302 parent 714d46ae804fcd847afe38c94a0c0b7dccb62dc6 Author: Christian Grothoff <christian@grothoff.org> Date: Fri, 7 Mar 2014 10:38:13 +0000 -fix map cmd shutdown Diffstat:
| M | src/nat/nat_mini.c | | | 10 | +++++----- |
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/nat/nat_mini.c b/src/nat/nat_mini.c @@ -669,13 +669,13 @@ GNUNET_NAT_mini_map_stop (struct GNUNET_NAT_MiniHandle *mini) GNUNET_OS_command_stop (mini->refresh_cmd); mini->refresh_cmd = NULL; } + if (NULL != mini->map_cmd) + { + GNUNET_OS_command_stop (mini->map_cmd); + mini->map_cmd = NULL; + } if (GNUNET_NO == mini->did_map) { - if (NULL != mini->map_cmd) - { - GNUNET_OS_command_stop (mini->map_cmd); - mini->map_cmd = NULL; - } GNUNET_free (mini); return; }