Skip to content

Commit d832e53

Browse files
authored
Merge pull request #13 from lothid/master
Fix Worker parent parameter when driver is not interop
2 parents 1bbb060 + 0c7e17c commit d832e53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Worker.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function daemon($connectionName, $queueNames, WorkerOptions $options)
4949
$this->interop = $this->queue instanceof Queue;
5050

5151
if (false == $this->interop) {
52-
parent::daemon($connectionName, $this->queue, $options);
52+
parent::daemon($connectionName, $this->queueNames, $options);
5353
}
5454

5555
$context = $this->queue->getQueueInteropContext();
@@ -76,7 +76,7 @@ public function runNextJob($connectionName, $queueNames, WorkerOptions $options)
7676
$this->interop = $this->queue instanceof Queue;
7777

7878
if (false == $this->interop) {
79-
parent::daemon($connectionName, $this->queue, $options);
79+
parent::daemon($connectionName, $this->queueNames, $options);
8080
}
8181

8282
$context = $this->queue->getQueueInteropContext();

0 commit comments

Comments
 (0)