forked from Mirrors/openclonk
netpuncher: Add runtime error handling
Previously, the netpuncher would just exit silently when encountering an error.ipv6
parent
725e99bb9c
commit
65d8c11450
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue