@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Jalle19\StatusManager; |
4 | 4 | |
5 | -use Jalle19\StatusManager\Database; |
|
6 | 5 | use Jalle19\StatusManager\Event\ConnectionSeenEvent; |
7 | 6 | use Jalle19\StatusManager\Event\Events; |
8 | 7 | use Jalle19\StatusManager\Event\InputSeenEvent; |
@@ -225,14 +225,12 @@ |
||
225 | 225 | |
226 | 226 | $this->_eventDispatcher->dispatch(Events::INSTANCE_STATE_REACHABLE, |
227 | 227 | new InstanceStateEvent($instance)); |
228 | - } |
|
229 | - catch (\Exception $e) |
|
228 | + } catch (\Exception $e) |
|
230 | 229 | { |
231 | 230 | $this->_eventDispatcher->dispatch(Events::INSTANCE_STATE_UNREACHABLE, |
232 | 231 | new InstanceStateEvent($instance)); |
233 | 232 | } |
234 | - } |
|
235 | - else |
|
233 | + } else |
|
236 | 234 | { |
237 | 235 | $this->_eventDispatcher->dispatch(Events::INSTANCE_STATE_MAYBE_REACHABLE, |
238 | 236 | new InstanceStateEvent($instance)); |
@@ -110,8 +110,7 @@ |
||
110 | 110 | $this->_logger->info('Retrying instance {instanceName} during next cycle', [ |
111 | 111 | 'instanceName' => $instance->getName(), |
112 | 112 | ]); |
113 | - } |
|
114 | - else |
|
113 | + } else |
|
115 | 114 | $instanceState->incrementRetryCount(); |
116 | 115 | } |
117 | 116 |