DEADSOFTWARE

Master: Sleep for more than 1ms when idle
authorfgsfds <pvt.fgsfds@gmail.com>
Sun, 11 Aug 2019 12:44:47 +0000 (15:44 +0300)
committerfgsfds <pvt.fgsfds@gmail.com>
Sun, 11 Aug 2019 12:44:47 +0000 (15:44 +0300)
src/mastersrv/master.c

index 304f6b532ff2f0957187ea75c5326fb57a803e9b..1dfed7ddfa601eb7ad72d6e54565cc6fe6259481 100644 (file)
@@ -278,7 +278,7 @@ int main (int argc, char *argv[]) {
   enet_uint8 proto = 0;
   enet_uint8 pw = 0;
   while (!shutdown) {
-    while (enet_host_service(ms_host, &event, 1) > 0) {
+    while (enet_host_service(ms_host, &event, 5000) > 0) {
       switch (event.type) {
         case ENET_EVENT_TYPE_CONNECT:
           printf(LC_MS_CONN, event.peer->address.host, event.peer->address.port);