fix: 热重载
This commit is contained in:
1 parent
e3d0c38216
commit
e0efdcc323
1 file changed
+2
-3
@@ -259,9 +259,6 @@ export class NapCatOnebot11 {
|
||||
// throw new Error('Invalid configuration object');
|
||||
// }
|
||||
|
||||
// 先设置
|
||||
ob11Config.save(NewOb11);
|
||||
|
||||
const isHttpChanged = !isEqual(NewOb11.http.port, ob11Config.http.port) && NewOb11.http.enable;
|
||||
const isHttpEnableChanged = !isEqual(NewOb11.http.enable, ob11Config.http.enable);
|
||||
|
||||
@@ -317,6 +314,8 @@ export class NapCatOnebot11 {
|
||||
ob11ReverseWebsockets.stop();
|
||||
}
|
||||
}
|
||||
|
||||
ob11Config.save(NewOb11);
|
||||
} catch (e) {
|
||||
logError('热重载配置失败', e);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user