We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e823d0d commit b910063Copy full SHA for b910063
src/Illuminate/Bus/Queueable.php
@@ -138,10 +138,12 @@ public function dispatchNextJobInChain()
138
if (! empty($this->chained)) {
139
dispatch(tap(unserialize(array_shift($this->chained)), function ($next) {
140
$next->chained = $this->chained;
141
- $next->chainConnection = $this->chainConnection;
142
- $next->chainQueue = $this->chainQueue;
+
143
$next->onConnection($next->connection ?: $this->chainConnection);
144
$next->onQueue($next->queue ?: $this->chainQueue);
145
+ $next->chainConnection = $this->chainConnection;
146
+ $next->chainQueue = $this->chainQueue;
147
}));
148
}
149
0 commit comments