Timeout on subscribe fail

This commit is contained in:
2021-05-24 16:06:16 +02:00
parent 2b2a9a6758
commit b8b2ec2ebc

View File

@ -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);
});
}
}