mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2024-12-13 19:06:27 +00:00
Make electron webrtc working in headless and stabdard fix
This commit is contained in:
parent
d4c34c344e
commit
5127aad052
@ -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
|
||||||
|
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user