Skip to content

Commit bf97f31

Browse files
committed
Activity::wait() should check for the cancelled state
1 parent 358933b commit bf97f31

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Model/Activity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function wait(callable $onPoll = null, callable $onLog = null, $pollInter
6767
}
6868
}
6969
$retries = 0;
70-
while (!$this->isComplete()) {
70+
while (!$this->isComplete() && $this->state !== self::STATE_CANCELLED) {
7171
usleep($pollInterval * 1000000);
7272
try {
7373
$this->refresh(['timeout' => $pollInterval + 5]);

0 commit comments

Comments
 (0)