Commit 77bffa43 authored by chenchuanwen's avatar chenchuanwen

bridgeReload

parent 77322483
...@@ -30,13 +30,8 @@ function callback($instance,$channelName,$message){ ...@@ -30,13 +30,8 @@ function callback($instance,$channelName,$message){
}catch(Exception $ex){ }catch(Exception $ex){
echo $ex->getMessage(); echo $ex->getMessage();
} }
pcntl_signal_dispatch(); $instance->unsubscribe(array($channelName));
if (Signal::get() == SIGHUP) { $instance->close();
$instance->unsubscribe(array($channelName));
$instance->close();
// Signal::reset();
}
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment