Skip to content
This repository has been archived by the owner on Apr 30, 2020. It is now read-only.

Commit

Permalink
Wait 30 seconds before emitting done
Browse files Browse the repository at this point in the history
  • Loading branch information
Lunik authored Apr 24, 2019
1 parent 26f84cf commit d344c2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/model/peer.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default class Peer extends EventEmitter {
break
case 'done':
this.started = false
this.emit('done', this)
setTimeout(() => this.emit('done', this), 30000)
break
case 'stop':
this.started = false
Expand Down

0 comments on commit d344c2a

Please sign in to comment.