🐛 make connection closed when restart.

This commit is contained in:
jerry 2018-11-28 15:35:55 +08:00
parent 7b8a1f40ee
commit 79bb11f6d4

View File

@ -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();
}