mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-22 08:05:34 +08:00
add auto-reconnect method to terminal_listener.php
add short name of ZM_BREAKPOINT (BP) fix loop error of syntax happened
This commit is contained in:
@@ -24,7 +24,7 @@ class ZMUtil
|
||||
|
||||
public static function stop($without_shutdown = false) {
|
||||
Console::info(Console::setColor("Stopping server...", "red"));
|
||||
foreach (ZMBuf::$server->connections as $v) {
|
||||
foreach ((ZMBuf::$server->connections ?? []) as $v) {
|
||||
ZMBuf::$server->close($v);
|
||||
}
|
||||
DataProvider::saveBuffer();
|
||||
|
||||
Reference in New Issue
Block a user