From 11533f8f7ac87486ca71710d0ea59ee961a24e8a Mon Sep 17 00:00:00 2001 From: Moe Date: Wed, 3 Oct 2018 09:37:34 -0700 Subject: [PATCH] add some missing module requirements --- libs/basic.js | 2 ++ libs/childNode.js | 3 +++ libs/events.js | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/basic.js b/libs/basic.js index 7fd118ea..c20e79dc 100644 --- a/libs/basic.js +++ b/libs/basic.js @@ -3,6 +3,8 @@ var crypto = require('crypto'); var exec = require('child_process').exec; var spawn = require('child_process').spawn; var events = require('events'); +var http = require('http'); +var https = require('https'); module.exports = function(s,config){ //kill any ffmpeg running s.ffmpegKill=function(){ diff --git a/libs/childNode.js b/libs/childNode.js index f901c707..e4807013 100644 --- a/libs/childNode.js +++ b/libs/childNode.js @@ -1,3 +1,6 @@ +var http = require('http'); +var https = require('https'); +var express = require('express'); module.exports = function(s,config,lang){ //setup Master for childNodes if(config.childNodes.enabled === true && config.childNodes.mode === 'master'){ diff --git a/libs/events.js b/libs/events.js index cfb65cbd..a7411734 100644 --- a/libs/events.js +++ b/libs/events.js @@ -294,7 +294,7 @@ module.exports = function(s,config,lang){ } request({url:d.url,method:'GET'},function(err,data){ if(err){ - + //could not start hotswap }else{ delete(s.group[d.ke].users[d.auth]) d.cx.f='detector_record_engaged';