Misc fixes.

This commit is contained in:
hondacrx
2021-02-18 13:04:07 -05:00
parent 6a6ae408ea
commit 91c0fd1924
2 changed files with 9 additions and 5 deletions
@@ -26,6 +26,12 @@ namespace BNetServer.Networking
public async override void ReadHandler(byte[] data, int receivedLength)
{
if (receivedLength == 0)
{
CloseSocket();
return;
}
var httpRequest = HttpHelper.ParseRequest(data, receivedLength);
if (httpRequest == null)
return;