Skip to content

Commit

Permalink
added a timeout to host.service - it wont take a bunch of CPU doing n…
Browse files Browse the repository at this point in the history
…othing any more!
  • Loading branch information
BR- committed Jan 9, 2018
1 parent ebb1c97 commit d478d66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion record.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
fh.write(struct.pack('BB', FILE_VERSION, args.version))
while True:
try:
event = con.service(0)
event = con.service(1000)
except IOError:
continue
if event is None:
Expand Down

0 comments on commit d478d66

Please sign in to comment.