the remuser thing should actually be fixed this time around
This commit is contained in:
parent
b2dd906b02
commit
43504db0a5
1 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue