Skip to content

Commit

Permalink
Move upnpServer assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
oeuillot committed Aug 19, 2014
1 parent 2a99fdf commit ac8f79f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;

Expand Down Expand Up @@ -186,8 +187,6 @@ API.prototype.start = function(callback) {

callback(null);
});

self.upnpServer = upnpServer;
});
};

Expand Down

0 comments on commit ac8f79f

Please sign in to comment.