the remuser thing should actually be fixed this time around

This commit is contained in:
Elijah R 2024-01-03 22:04:29 -05:00
parent b2dd906b02
commit 43504db0a5

View file

@ -522,7 +522,7 @@ public class User
}
if (result.MessageType == WebSocketMessageType.Close)
{
Disconnected.Invoke(this, new EventArgs());
await Close();
return;
}
@ -530,6 +530,7 @@ public class User
{
Utilities.Log(LogLevel.INFO, $"Kicking {_username ?? _ip.ToString()} for sending a binary message");
await Close();
return;
}
await ms.WriteAsync(receivebuffer.Array, 0, result.Count, token);
@ -558,7 +559,8 @@ public class User
}
ProcessMessage(msgArr);
}
this.Disconnected.Invoke(this, new EventArgs());
await Close();
}
public async Task SendRect(string jpg64, int x, int y)