Make electron webrtc working in headless and stabdard fix

This commit is contained in:
Yoann Ciabaud 2016-03-16 09:57:53 +01:00 committed by Feross Aboukhadijeh
parent d4c34c344e
commit 5127aad052
2 changed files with 3 additions and 1 deletions

View File

@ -4,3 +4,5 @@ node_js:
- "node" - "node"
- "4" - "4"
- "0.12" - "0.12"
before_script:
- export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start

View File

@ -90,7 +90,7 @@ WebSocketTracker.prototype.destroy = function (cb) {
clearTimeout(self.reconnectTimer) clearTimeout(self.reconnectTimer)
// Destroy peers // Destroy peers
for(var peerId in self.peers) { for (var peerId in self.peers) {
var peer = self.peers[peerId] var peer = self.peers[peerId]
clearTimeout(peer.trackerTimeout) clearTimeout(peer.trackerTimeout)
peer.destroy() peer.destroy()