1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-05 03:30:05 +00:00

fix(session-status): fixed stop polling session status

This commit is contained in:
Yury Shkoda
2020-12-09 12:45:37 +03:00
parent 6356aed06b
commit 02780d0bcd

View File

@@ -168,7 +168,11 @@ export class SessionManager {
const stateLink = session.links.find((l: any) => l.rel === 'state')
return new Promise(async (resolve, _) => {
if (sessionState === 'pending') {
if (
sessionState === 'pending' ||
sessionState === 'running' ||
sessionState === ''
) {
if (stateLink) {
if (this.debug) {
console.log('Polling session status... \n') // ?