Add client.destroy();

This commit is contained in:
Amish Shah
2016-08-30 13:05:50 +01:00
parent 56352220af
commit d249aa10cc
18 changed files with 74 additions and 42 deletions

View File

@@ -28,7 +28,7 @@ class TypingStartHandler extends AbstractHandler {
const timestamp = new Date(data.timestamp * 1000);
function tooLate() {
return setTimeout(() => {
return client.setTimeout(() => {
client.emit(Constants.Events.TYPING_STOP, channel, user, channel.typingMap[user.id]);
delete channel.typingMap[user.id];
}, 6000);