Add missing require('fs')

pull/22966/head
Ryan Dahl 2010-11-01 14:56:21 -07:00
parent ea78d995e0
commit f1391f33cd
1 changed files with 1 additions and 1 deletions

View File

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