netpuncher: Add runtime error handling

Previously, the netpuncher would just exit silently when encountering an
error.
ipv6
Lukas Werling 2017-01-07 17:22:28 +01:00
parent 725e99bb9c
commit 65d8c11450
1 changed files with 5 additions and 1 deletions

View File

@ -96,7 +96,11 @@ int main(int argc, char * argv[])
printf("Listening on port %d...\n", iPort);
// Execute forever
Puncher.ExecuteUntil(-1);
for (;;)
{
Puncher.ExecuteUntil(-1);
fprintf(stderr, "ERROR: %s\n", Puncher.GetError());
}
return 0;
}