fix possible bug

This commit is contained in:
flash 2017-03-19 16:56:31 +01:00
parent a438dc0c02
commit b70f0a891d

View file

@ -9,8 +9,11 @@ namespace NP
private static User: string = null; private static User: string = null;
public static Start(user: string): void { public static Start(user: string): void {
this.User = user; if (this.Fetcher !== null) {
this.Stop();
}
this.User = user;
this.Fetcher = new AJAX; this.Fetcher = new AJAX;
this.Fetcher.AddCallback(200, () => { this.Fetcher.AddCallback(200, () => {