mailserver: fix crash when restarting

This commit is contained in:
Girish Ramakrishnan
2023-08-21 15:19:42 +05:30
parent 2427f15231
commit 9e093db7d8

View File

@@ -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();
}