From dbc1c060f8c0825bdb8adc1d7ac3ac1d385d224f Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Mon, 25 Feb 2019 22:10:17 +0300 Subject: [PATCH] Fixing WS message processing conditions in ProcessWebsocketUpdatesCommand. --- .../Command/ProcessWebsocketUpdatesCommand.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Skobkin/Bundle/PointToolsBundle/Command/ProcessWebsocketUpdatesCommand.php b/src/Skobkin/Bundle/PointToolsBundle/Command/ProcessWebsocketUpdatesCommand.php index 94c6433..7e5fba3 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/Command/ProcessWebsocketUpdatesCommand.php +++ b/src/Skobkin/Bundle/PointToolsBundle/Command/ProcessWebsocketUpdatesCommand.php @@ -84,13 +84,9 @@ class ProcessWebsocketUpdatesCommand extends Command try { if ($this->messageProcessor->processMessage($message)) { - if ($keepJobs) { - - } else { + if (!$keepJobs) { $this->bsClient->delete($job); } - } else { - } } catch (UnsupportedTypeException $e) { $output->writeln('Unsupported message type: '.$message->getA());