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