Skip to content

Commit ac8f79f

Browse files
committed
Move upnpServer assignment
1 parent 2a99fdf commit ac8f79f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

api.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ API.prototype.start = function(callback) {
105105

106106
self.emit("starting");
107107

108+
self.upnpServer = upnpServer;
109+
108110
var descURL = upnpServer.descriptionPath;
109111
if (descURL.charAt(0) == "/") {
110112
descURL = descURL.substring(1);
@@ -113,14 +115,13 @@ API.prototype.start = function(callback) {
113115
var locationURL = 'http://' + ip.address() + ':' +
114116
self.configuration.httpPort + "/" + descURL;
115117

116-
debugger;
117118
var ssdpServer = new SSDP.Server({
118119
logLevel : self.configuration.ssdpLogLevel, // 'trace',
119120
log : self.configuration.ssdpLog,
120121
udn : upnpServer.uuid,
121122
description : descURL,
122123
location : locationURL
123-
//ssdpPort: upnpServer.port
124+
// ssdpPort: upnpServer.port
124125
});
125126
self.ssdpServer = ssdpServer;
126127

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

187188
callback(null);
188189
});
189-
190-
self.upnpServer = upnpServer;
191190
});
192191
};
193192

0 commit comments

Comments
 (0)