From ac8f79f6eef4dbfa2fd28059ee487ff20df85b16 Mon Sep 17 00:00:00 2001 From: oeuillot Date: Tue, 19 Aug 2014 17:36:41 +0200 Subject: [PATCH] Move upnpServer assignment --- api.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/api.js b/api.js index da933e9..6760057 100644 --- a/api.js +++ b/api.js @@ -105,6 +105,8 @@ API.prototype.start = function(callback) { self.emit("starting"); + self.upnpServer = upnpServer; + var descURL = upnpServer.descriptionPath; if (descURL.charAt(0) == "/") { descURL = descURL.substring(1); @@ -113,14 +115,13 @@ API.prototype.start = function(callback) { var locationURL = 'http://' + ip.address() + ':' + self.configuration.httpPort + "/" + descURL; - debugger; var ssdpServer = new SSDP.Server({ logLevel : self.configuration.ssdpLogLevel, // 'trace', log : self.configuration.ssdpLog, udn : upnpServer.uuid, description : descURL, location : locationURL - //ssdpPort: upnpServer.port + // ssdpPort: upnpServer.port }); self.ssdpServer = ssdpServer; @@ -186,8 +187,6 @@ API.prototype.start = function(callback) { callback(null); }); - - self.upnpServer = upnpServer; }); };