Skip to content

Commit

Permalink
Don't show errors (don't care about failed fwrite. If you do - overwr…
Browse files Browse the repository at this point in the history
…ite method in extended class)
  • Loading branch information
Alex committed Jul 24, 2018
1 parent d5fcc92 commit 6d5836c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ protected function write($client, $data): Generator
Logger::log('worker', $this->pid, 'fwrite to', (int)$client . ' - ' . (string)$data);

try {
fwrite($client, $data);
@fwrite($client, $data);
} catch (\Throwable $e) {
// Here you can implement error handler
}
Expand Down

0 comments on commit 6d5836c

Please sign in to comment.