Add missing require('fs')
This commit is contained in:
parent
ea78d995e0
commit
f1391f33cd
@ -1094,7 +1094,7 @@ Server.prototype.listen = function () {
|
||||
if (!r.isSocket()) {
|
||||
throw new Error("Non-socket exists at " + path);
|
||||
} else {
|
||||
fs.unlink(path, function (err) {
|
||||
require('fs').unlink(path, function (err) {
|
||||
if (err) throw err;
|
||||
self._doListen(path);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user