0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-17 23:45:29 -05:00

Merge pull request #374 from lgaitan/socket-check

fix: Check if socket exists before removing
This commit is contained in:
Juan Picado @jotadeveloper 2017-10-21 17:51:40 +02:00 committed by GitHub
commit a4ab72c31d

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