fix possible bug
This commit is contained in:
parent
a438dc0c02
commit
b70f0a891d
1 changed files with 4 additions and 1 deletions
|
@ -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, () => {
|
||||||
|
|
Loading…
Reference in a new issue