mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-02-10 23:39:31 -05:00
fix: Check if socket exists before removing
This commit is contained in:
parent
f2e857990a
commit
e916a0f697
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ function afterConfigLoad() {
|
||||||
webServer = http.createServer(app);
|
webServer = http.createServer(app);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (addr.path) {
|
if (addr.path && fs.existsSync(addr.path)) {
|
||||||
fs.unlinkSync(addr.path);
|
fs.unlinkSync(addr.path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue