Skip to content
Snippets Groups Projects
Commit 240f562f authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Add support to leave sessions via Socket.IO

parent c5246801
Branches
Tags
No related merge requests found
...@@ -67,7 +67,9 @@ public class SessionService implements ISessionService { ...@@ -67,7 +67,9 @@ public class SessionService implements ISessionService {
Session session = databaseDao.getSession(keyword); Session session = databaseDao.getSession(keyword);
if (null == session) { if (null == session) {
throw new NotFoundException(); userService.removeUserFromSessionBySocketId(socketId);
return null;
} }
User user = userService.getUser2SocketId(socketId); User user = userService.getUser2SocketId(socketId);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment