diff --git a/src/timeout.ts b/src/timeout.ts index 97b209b..9b13328 100644 --- a/src/timeout.ts +++ b/src/timeout.ts @@ -48,7 +48,7 @@ export class Timeout { send: function (event: any, next: Function) { const convoId = event.address.conversation.id; if (event.type === endOfConversation) { - _this.clearTimeoutHandlers(event); + _this.clearTimeoutHandlers(convoId); _this.timeoutStore.removeConvoFromStore(convoId); } if (event.type !== endOfConversation && _this.timeoutStore.getPromptHandlerFor(convoId) === null) { @@ -104,4 +104,4 @@ export class Timeout { export function setConversationTimeout(bot: builder.UniversalBot, options: TimeoutOptions) { new Timeout(bot, options).init(); -} \ No newline at end of file +}