1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-03-10 00:48:11 +00:00

Merge pull request #176 from sasjs/cli-issue-317

fix(session-status): fixed stop polling session status
This commit is contained in:
Yury Shkoda
2020-12-09 12:56:17 +03:00
committed by GitHub

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') // ?