Commit 5eb2c0d7 authored by chenchuanwen's avatar chenchuanwen

bridgeReload

parent 63a76f07
......@@ -32,16 +32,7 @@ function callback($instance,$channelName,$message){
}
pcntl_signal_dispatch();
if (Signal::get() == SIGHUP) {
global $conf;
global $redisPublishName;
$redis=new Redis();
echo json_encode($conf);
$redis->connect($conf['host'], $conf['port']);
if(!empty($conf['password'])){
$redis->auth($conf['password']);
}
$redis->unsubscribe(array($redisPublishName));
$redis->close();
$instance->unsubscribe(array($channelName));
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