increased gc timeout

This commit is contained in:
Kevin Jahns 2014-09-29 12:10:33 +02:00
parent c337f37665
commit 6623bd6134
2 changed files with 1 additions and 2 deletions

View File

@ -111,7 +111,6 @@ createPeerJsConnector = ()->
for conn_id in data.conns
@connectToPeer conn_id
else if data.sync_state_vector?
console.log "turinae"
conn.send
HB: @yatta.getHistoryBuffer()._encode(data.sync_state_vector)
initialized: true

View File

@ -20,7 +20,7 @@ class HistoryBuffer
@garbage = [] # Will be cleaned on next call of garbageCollector
@trash = [] # Is deleted. Wait until it is not used anymore.
@performGarbageCollection = true
@garbageCollectTimeout = 1000
@garbageCollectTimeout = 8000
@reserved_identifier_counter = 0
setTimeout @emptyGarbage, @garbageCollectTimeout