Skip to content

Commit

Permalink
Node10 fixes - only call http .listen() once
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerHardiman committed Dec 31, 2018
1 parent 804b86d commit 37f339a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions lib/SoapService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ class SoapService {
this.starting();

utils.log.info("Binding %s to http://%s:%s%s", (<TypeConstructor>this.constructor).name, utils.getIpAddress(), this.config.ServicePort, this.serviceOptions.path);
this.webserver.listen(this.config.ServicePort);
var onReady = this.serviceOptions.onReady;
this.serviceOptions.onReady = () => {
this._started();
Expand Down Expand Up @@ -132,4 +131,4 @@ class SoapService {
this.started();
}
}
export = SoapService;
export = SoapService;
2 changes: 2 additions & 0 deletions rpos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ for (var i in config.DeviceInformation) {

let webserver = express();
let httpserver = http.createServer(webserver);
httpserver.listen(config.ServicePort);

let ptz_driver = new PTZDriver(config);

let camera = new Camera(config, webserver);
Expand Down

0 comments on commit 37f339a

Please sign in to comment.