mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-12-13 14:49:03 +00:00
Fixed exception showing when tick-based broadcast happens exactly when a user is connected but not authenticated
This commit is contained in:
@@ -113,7 +113,7 @@ public class SocketServer {
|
|||||||
|
|
||||||
if (user.getWebSocket().isOpen()) {
|
if (user.getWebSocket().isOpen()) {
|
||||||
|
|
||||||
if (user.getUser().isGuest()) {
|
if (user.getUser() != null && user.getUser().isGuest()) {
|
||||||
|
|
||||||
json.remove("c");
|
json.remove("c");
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user