Timeout on subscribe fail
This commit is contained in:
@ -234,8 +234,12 @@ export class Session {
|
|||||||
}).then(response => {
|
}).then(response => {
|
||||||
return response.json();
|
return response.json();
|
||||||
}).then(response => {
|
}).then(response => {
|
||||||
func(response);
|
|
||||||
this.subscribe(func);
|
this.subscribe(func);
|
||||||
|
func(response);
|
||||||
|
}).catch(() => {
|
||||||
|
setTimeout(() => {
|
||||||
|
this.subscribe(func);
|
||||||
|
}, 1000);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user