fixed scope issue when logging in
@@ -222,6 +222,8 @@ public class Session {
);
}
+ }
+ }
Optional<User> selectUser = UserManager.instance.createUser(userName, host, authorizedUser);
boolean reconnect = false;
if (!selectUser.isPresent()) { // user already exists
@@ -259,8 +261,8 @@ public class Session {
ChatManager.instance.joinChat(room.get().getChatId(), userId);
ChatManager.instance.sendReconnectMessage(userId);
}
- }
- }
+
+
return null;
}
