Properly close client on clicking leave.

master
Håvar Aambø Fosstveit 2019-11-04 23:31:10 +01:00
parent d9e712ec04
commit fd1e53a895
1 changed files with 2 additions and 0 deletions

View File

@ -208,6 +208,8 @@ export default class RoomClient
this._recvTransport.close(); this._recvTransport.close();
store.dispatch(stateActions.setRoomState('closed')); store.dispatch(stateActions.setRoomState('closed'));
window.location = '/';
} }
_startKeyListener() _startKeyListener()