public function stop()
{
if ($this->stopped) {
return;
}
$this->stopped = true;
if (in_array('one-by-one', $this->pollMode)) {
$this->finish();
return;
}
$this->appInstance->unsubscribeReal('s2c:' . $this->sessId, function ($redis) {
$this->finish();
});
}