This commit is contained in:
手瓜一十雪 committed 2024-05-20 18:11:13 +08:00
1 parent a4423247f4
commit 8c1b06bec6
1 file changed
+1 -1
+1 -1
View File
@@ -289,7 +289,7 @@ export class NapCatOnebot11 {
// ws重启逻辑
if ((isEnableWsChanged || isWsChanged) && NewOb11.ws.enable) {
if (OldConfig.ws.enable) {
ob11HTTPServer.stop();
ob11WebsocketServer.stop();
}
ob11WebsocketServer.start(NewOb11.ws.port, NewOb11.ws.host);
} else if (isHttpEnableChanged && !NewOb11.http.enable) {