mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-23 00:25:35 +08:00
repair connection class removing bug
This commit is contained in:
@@ -11,7 +11,6 @@ class WSCloseEvent extends Event
|
|||||||
public function __construct(swoole_server $server, int $fd) {
|
public function __construct(swoole_server $server, int $fd) {
|
||||||
$connect = CQUtil::getConnection($fd);
|
$connect = CQUtil::getConnection($fd);
|
||||||
if ($connect->getPair() !== null) {
|
if ($connect->getPair() !== null) {
|
||||||
$connect->getPair()->setPair(null);
|
|
||||||
$connect->setPair(null);
|
$connect->setPair(null);
|
||||||
}
|
}
|
||||||
unset(Buffer::$connect[$fd]);
|
unset(Buffer::$connect[$fd]);
|
||||||
|
|||||||
Reference in New Issue
Block a user