mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-02 14:25:38 +08:00
🐛 make connection closed when restart.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user