From 5127aad0529d8efdea8eb5150a6bff8464672a8f Mon Sep 17 00:00:00 2001 From: Yoann Ciabaud Date: Wed, 16 Mar 2016 09:57:53 +0100 Subject: [PATCH] Make electron webrtc working in headless and stabdard fix --- .travis.yml | 2 ++ lib/client/websocket-tracker.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 794a929..df5c401 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,3 +4,5 @@ node_js: - "node" - "4" - "0.12" +before_script: + - export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start diff --git a/lib/client/websocket-tracker.js b/lib/client/websocket-tracker.js index e9944d0..d3a0e21 100644 --- a/lib/client/websocket-tracker.js +++ b/lib/client/websocket-tracker.js @@ -90,7 +90,7 @@ WebSocketTracker.prototype.destroy = function (cb) { clearTimeout(self.reconnectTimer) // Destroy peers - for(var peerId in self.peers) { + for (var peerId in self.peers) { var peer = self.peers[peerId] clearTimeout(peer.trackerTimeout) peer.destroy()