1
0
mirror of https://github.com/deavmi/birchwood synced 2024-09-20 11:43:22 +02:00
- When the remote host closes the connection and we are in `unittest` build then purposefully crash
This commit is contained in:
Tristan B. Velloza Kildaire 2023-06-05 21:04:44 +02:00
parent 2b5da1eb9a
commit 8199b8b2a4

View File

@ -1017,6 +1017,13 @@ public class Client : Thread
import std.stdio;
writeln("(peek) bytesRead: '", bytesRead, "' (status var or count)");
writeln("(peek) currentData: '", currentData, "'");
// On remote end closing connection
if(bytesRead == 0)
{
writeln("About to do the panic!");
*cast(byte*)0 = 2;
}
}