X-Git-Url: https://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Fgame%2Fg_netmaster.pas;h=95fbb5f5b1b7584717b34911043cd036fd7bfd4b;hp=e696d873a41e14ac95dc8f0b220ffbdfe1e2b27f;hb=a50544067b99f65e2b4882366521287607dd892f;hpb=ada62776e1c2db5a0107b2eed7a3cac72250aa43 diff --git a/src/game/g_netmaster.pas b/src/game/g_netmaster.pas index e696d87..95fbb5f 100644 --- a/src/game/g_netmaster.pas +++ b/src/game/g_netmaster.pas @@ -238,6 +238,9 @@ begin ct := GetTimerMS(); if (ct < stt) or (ct-stt >= 1500) then break; + // fuck! https://www.mail-archive.com/enet-discuss@cubik.org/msg00852.html + // tl;dr: on shitdows, we can get -1 sometimes, and it is *NOT* a failure. + // thank you, enet. let's ignore failures altogether then. sres := enet_host_service(NetMHost, @NetMEvent, 100); // if (sres < 0) then break; if (sres <= 0) then continue; @@ -1145,6 +1148,9 @@ begin mlist[f].pulse(); end; + // fuck! https://www.mail-archive.com/enet-discuss@cubik.org/msg00852.html + // tl;dr: on shitdows, we can get -1 sometimes, and it is *NOT* a failure. + // thank you, enet. let's ignore failures altogether then. sres := enet_host_service(NetMHost, @NetMEvent, timeout); while (sres > 0) do begin