Fixing WS message processing conditions in ProcessWebsocketUpdatesCommand.
This commit is contained in:
parent
b1d047941c
commit
dbc1c060f8
|
@ -84,13 +84,9 @@ class ProcessWebsocketUpdatesCommand extends Command
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if ($this->messageProcessor->processMessage($message)) {
|
if ($this->messageProcessor->processMessage($message)) {
|
||||||
if ($keepJobs) {
|
if (!$keepJobs) {
|
||||||
|
|
||||||
} else {
|
|
||||||
$this->bsClient->delete($job);
|
$this->bsClient->delete($job);
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
|
|
||||||
}
|
}
|
||||||
} catch (UnsupportedTypeException $e) {
|
} catch (UnsupportedTypeException $e) {
|
||||||
$output->writeln('Unsupported message type: '.$message->getA());
|
$output->writeln('Unsupported message type: '.$message->getA());
|
||||||
|
|
Loading…
Reference in a new issue