Skip to content

Commit 24063e7

Browse files
committed
Removed dead code
1 parent 1b7fd47 commit 24063e7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/Wrench/ConnectionManager.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,12 @@ protected function processClientSocket($socket)
243243

244244
try {
245245
$connection->process();
246+
} catch (CloseException $e) {
247+
$this->log('Client connection closed: ' . $e, 'notice');
248+
$connection->close($e);
246249
} catch (WrenchException $e) {
247-
$this->log('Error on client socket: ' . $e, 'err');
250+
$this->log('Error on client socket: ' . $e, 'warning');
248251
$connection->close($e);
249-
//$this->removeConnection($connection); // extra?
250252
}
251253
}
252254

0 commit comments

Comments
 (0)