()
| 583 | } |
| 584 | |
| 585 | private getPausedSession(): StalkerSession | null { |
| 586 | const session = this.getSession(this.currentThreadId); |
| 587 | if (session === null) { |
| 588 | return null; |
| 589 | } |
| 590 | |
| 591 | if (!session.paused) { |
| 592 | log(`[stalker] thread ${session.threadId} is not paused`, "yellow"); |
| 593 | return null; |
| 594 | } |
| 595 | |
| 596 | return session; |
| 597 | } |
| 598 | |
| 599 | private finishSession(session: StalkerSession): void { |
| 600 | session.semaphore.destroy(); |
no test coverage detected