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