diff options
author | xrs <xrs@mail36.net> | 2018-06-26 23:29:17 +0200 |
---|---|---|
committer | xrs <xrs@mail36.net> | 2018-06-26 23:29:17 +0200 |
commit | 3c67615857af959b95ab7c133d07a06bb9cebdeb (patch) | |
tree | 847f9d647bd121df4dfd1d0aab12c3c0ccd4c083 /src/nat | |
parent | cf274353b531842dd55cd4ff75046dd060ff3011 (diff) | |
download | gnunet-3c67615857af959b95ab7c133d07a06bb9cebdeb.tar.gz gnunet-3c67615857af959b95ab7c133d07a06bb9cebdeb.zip |
gnunet-helper-nat-server.c: fix 100% cpu load
Diffstat (limited to 'src/nat')
-rw-r--r-- | src/nat/gnunet-helper-nat-server.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nat/gnunet-helper-nat-server.c b/src/nat/gnunet-helper-nat-server.c index 44817ede7..c5c6b563e 100644 --- a/src/nat/gnunet-helper-nat-server.c +++ b/src/nat/gnunet-helper-nat-server.c | |||
@@ -683,7 +683,10 @@ main (int argc, | |||
683 | if (1 == getppid ()) /* Check the parent process id, if 1 the parent has died, so we should die too */ | 683 | if (1 == getppid ()) /* Check the parent process id, if 1 the parent has died, so we should die too */ |
684 | break; | 684 | break; |
685 | if (FD_ISSET (icmpsock, &rs)) | 685 | if (FD_ISSET (icmpsock, &rs)) |
686 | { | ||
686 | process_icmp_response (); | 687 | process_icmp_response (); |
688 | continue; | ||
689 | } | ||
687 | if (0 == (++alt % 2)) | 690 | if (0 == (++alt % 2)) |
688 | send_icmp_echo (&external); | 691 | send_icmp_echo (&external); |
689 | else | 692 | else |