mirror of https://github.com/nodejs/node.git
Add missing require('fs')
parent
ea78d995e0
commit
f1391f33cd
|
@ -1094,7 +1094,7 @@ Server.prototype.listen = function () {
|
||||||
if (!r.isSocket()) {
|
if (!r.isSocket()) {
|
||||||
throw new Error("Non-socket exists at " + path);
|
throw new Error("Non-socket exists at " + path);
|
||||||
} else {
|
} else {
|
||||||
fs.unlink(path, function (err) {
|
require('fs').unlink(path, function (err) {
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
self._doListen(path);
|
self._doListen(path);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue