mailserver: fix crash when restarting
This commit is contained in:
@@ -23,7 +23,7 @@ const assert = require('assert'),
|
||||
|
||||
// because of how the proxy middleware works, the http response is already sent by the time this function is called
|
||||
async function restart(req, res, next) {
|
||||
await safe(mailServer.restartMail(), { debug });
|
||||
await safe(mailServer.restart(), { debug });
|
||||
next();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user