mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-03-18 13:14:52 +08:00
🐛 make connection closed when restart.
This commit is contained in:
parent
7b8a1f40ee
commit
79bb11f6d4
@ -234,6 +234,10 @@ class CQUtil
|
||||
static function reload() {
|
||||
Console::info("Reloading server");
|
||||
self::saveAllFiles();
|
||||
Cache::$data = [];
|
||||
foreach(ConnectionManager::getAll() as $v){
|
||||
$v->close();
|
||||
}
|
||||
Cache::$server->reload();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user