parent
5f27cf1152
commit
dc29946618
|
@ -83,6 +83,7 @@ class PluginsLoader {
|
|||
* @param isRefresh 是否刷新
|
||||
*/
|
||||
async load(isRefresh = false) {
|
||||
this.delCount()
|
||||
if (isRefresh) this.priority = []
|
||||
if (this.priority.length) return
|
||||
|
||||
|
|
|
@ -36,10 +36,10 @@ const serverHttpexit = http.createServer(async (req, res) => {
|
|||
return
|
||||
}
|
||||
if (req.url === `/restart`) {
|
||||
await serverProcess.kill();
|
||||
await startServer();
|
||||
res.writeHead(200, { 'Content-Type': 'text/plain' });
|
||||
res.end('OK\n');
|
||||
await serverProcess.kill();
|
||||
await startServer();
|
||||
} else if (req.url === `/exit`) {
|
||||
res.writeHead(200, { 'Content-Type': 'text/plain' });
|
||||
res.end('OK\n');
|
||||
|
|
Loading…
Reference in New Issue