From b70f0a891de142759d5730de20a77535144933ab Mon Sep 17 00:00:00 2001 From: flashwave Date: Sun, 19 Mar 2017 16:56:31 +0100 Subject: [PATCH] fix possible bug --- src/typescript/Watcher.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/typescript/Watcher.ts b/src/typescript/Watcher.ts index 7a630e2..4dfd8ec 100644 --- a/src/typescript/Watcher.ts +++ b/src/typescript/Watcher.ts @@ -9,8 +9,11 @@ namespace NP private static User: string = null; public static Start(user: string): void { - this.User = user; + if (this.Fetcher !== null) { + this.Stop(); + } + this.User = user; this.Fetcher = new AJAX; this.Fetcher.AddCallback(200, () => {