0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-27 22:59:51 -05:00

fix: Check if socket exists before removing

This commit is contained in:
Lucius Gaitán 2017-10-21 06:55:40 -02:00
parent f2e857990a
commit e916a0f697

View file

@ -172,7 +172,7 @@ function afterConfigLoad() {
webServer = http.createServer(app);
}
if (addr.path) {
if (addr.path && fs.existsSync(addr.path)) {
fs.unlinkSync(addr.path);
}