diff options
Diffstat (limited to 'frontend/src/sagas/gameBrowser.js')
-rw-r--r-- | frontend/src/sagas/gameBrowser.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/frontend/src/sagas/gameBrowser.js b/frontend/src/sagas/gameBrowser.js index 717cbd2a..2dbd4040 100644 --- a/frontend/src/sagas/gameBrowser.js +++ b/frontend/src/sagas/gameBrowser.js @@ -20,12 +20,10 @@ function gameBrowserChannel(socket) { const newGame = socket.subscribe('/topic/games', makeHandler(types.CREATE_OR_UPDATE_GAMES)) const joinGame = socket.subscribe('/user/queue/lobby/joined', makeHandler(types.JOIN_GAME)) - const unsubscribe = () => { + return () => { newGame.unsubscribe() joinGame.unsubscribe() } - - return unsubscribe }) } |