From 829cc090fada936f9c71c609dd09da5339ac11a5 Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Fri, 2 Jan 2015 23:22:48 -0500 Subject: [PATCH] Use graceful-fs to maybe prevent EMFILE --- lib/channel/channel.js | 2 +- lib/logger.js | 2 +- lib/server.js | 2 +- lib/web/auth.js | 1 - package.json | 3 ++- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/channel/channel.js b/lib/channel/channel.js index 2ecfde1a..843b4261 100644 --- a/lib/channel/channel.js +++ b/lib/channel/channel.js @@ -4,7 +4,7 @@ var ChannelModule = require("./module"); var Flags = require("../flags"); var Account = require("../account"); var util = require("../utilities"); -var fs = require("fs"); +var fs = require("graceful-fs"); var path = require("path"); var sio = require("socket.io"); var db = require("../database"); diff --git a/lib/logger.js b/lib/logger.js index 84f4ef48..64cc62c3 100644 --- a/lib/logger.js +++ b/lib/logger.js @@ -1,4 +1,4 @@ -var fs = require("fs"); +var fs = require("graceful-fs"); var path = require("path"); function getTimeString() { diff --git a/lib/server.js b/lib/server.js index 1082aa57..cca14e9b 100644 --- a/lib/server.js +++ b/lib/server.js @@ -1,4 +1,4 @@ -const VERSION = "3.6.0"; +const VERSION = "3.6.1"; var singleton = null; var Config = require("./config"); diff --git a/lib/web/auth.js b/lib/web/auth.js index 939badd1..11943866 100644 --- a/lib/web/auth.js +++ b/lib/web/auth.js @@ -5,7 +5,6 @@ */ var jade = require("jade"); -var fs = require("fs"); var path = require("path"); var webserver = require("./webserver"); var cookieall = webserver.cookieall; diff --git a/package.json b/package.json index eebad5ca..b5934b85 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "author": "Calvin Montgomery", "name": "CyTube", "description": "Online media synchronizer and chat", - "version": "3.6.0", + "version": "3.6.1", "repository": { "url": "http://github.com/calzoneman/sync" }, @@ -14,6 +14,7 @@ "cytubefilters": "git://github.com/calzoneman/cytubefilters#a5a99642", "express": "^4.8.5", "express-minify": "0.0.11", + "graceful-fs": "^3.0.5", "jade": "^1.5.0", "json-typecheck": "^0.1.0", "morgan": "^1.2.3",