1
0
mirror of https://github.com/deavmi/birchwood synced 2024-09-20 13:22:52 +02:00
- Documented a bug with the PING detection (#13)
This commit is contained in:
Tristan B. Velloza Kildaire 2023-03-15 16:51:46 +02:00
parent 44cce182ae
commit f0ae335419

View File

@ -126,10 +126,14 @@ public final class ReceiverThread : Thread
ulong pos = 0;
foreach(ubyte[] message; recvQueue[])
{
// FIXME: Holy shit this is funny (see https://github.com/deavmi/birchwood/issues/13)
if(indexOf(cast(string)message, "PING") > -1)
{
pingMessage = message;
recvQueue.linearRemoveElement(message);
import std.stdio;
writeln("\n\nHOLY SHIT\n: "~cast(string)(message)~"\n\n");
break;
}