Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removing exception catch

  • Loading branch information...
commit 65ac587ebb77b69b8602620ad7646029d5553341 1 parent 5280d9c
@ianbarber authored
Showing with 6 additions and 14 deletions.
  1. +3 −7 worker/sink.php
  2. +3 −7 worker/work.php
View
10 worker/sink.php
@@ -17,13 +17,9 @@
if($ev) {
$total += $results->recv();
} else {
- try {
- if($ctrl->recv(ZMQ::MODE_NOBLOCK)) {
- echo $total, PHP_EOL;
- exit();
- }
- } catch (ZMQException $e) {
- //noop
+ if($ctrl->recv(ZMQ::MODE_NOBLOCK)) {
+ echo $total, PHP_EOL;
+ exit();
}
}
}
View
10 worker/work.php
@@ -20,13 +20,9 @@
$message = $work->recv();
$sink->send(strlen($message));
} else {
- try {
- if($ctrl->recv(ZMQ::MODE_NOBLOCK)) {
- echo "Got END";
- exit();
- }
- } catch(ZMQException $e) {
- // noop
+ if($ctrl->recv(ZMQ::MODE_NOBLOCK)) {
+ echo "Got END";
+ exit();
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.