git ssb

4+

Dominic / scuttlebot



Commit 221b517a9d76a11bd3aa26d46edb9deb9bd348d8

electron compat unref

Dominic Tarr committed on 6/10/2017, 2:04:20 AM
Parent: 48efa4f4f1d44115cba007a5b04bff15044b44d1

Files changed

lib/progress.jschanged
lib/progress.jsView
@@ -22,9 +22,9 @@
2222 return (prog.current - prog.start) / (prog.target - prog.start)
2323 }
2424
2525 var prog = -1
26- setInterval(function () {
26+ var int = setInterval(function () {
2727 var p = progress()
2828 var r = 0, c = 0
2929 var tasks = []
3030 for(var k in p) {
@@ -37,6 +37,7 @@
3737 prog = r
3838 var msg = tasks.join(', ')
3939 process.stdout.write(bar(prog) + ' ('+msg+')')
4040 }
41- }, 333).unref()
41+ }, 333)
42+ int.unref && int.unref()
4243 }

Built with git-ssb-web