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:
commit
a4ab72c31d
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ function afterConfigLoad() {
|
|||
webServer = http.createServer(app);
|
||||
}
|
||||
|
||||
if (addr.path) {
|
||||
if (addr.path && fs.existsSync(addr.path)) {
|
||||
fs.unlinkSync(addr.path);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue