Skip to content

Commit

Permalink
Fix the bug found by @swarbred in the last run (BED12 parsers dying b…
Browse files Browse the repository at this point in the history
…ecause they start too soon). #280
  • Loading branch information
lucventurini committed Apr 3, 2020
1 parent f074581 commit 6fcad94
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Mikado/parsers/bed12.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
but at the same time more pythonic.
"""


from time import sleep
import numpy
import os
from fastnumbers import fast_int, fast_float, isint
Expand Down Expand Up @@ -1706,10 +1706,10 @@ def run(self, *args, **kwargs):
if self.rec_queue is None:
self.return_queue.put(b"FINISHED")
raise ValueError
if self.rec_queue.empty():
self.return_queue.put(b"FINISHED")
raise ValueError
while True: # not self.rec_queue.empty():
while True:
if self.rec_queue.empty():
sleep(0.1)
continue
line = self.rec_queue.get()
if line in ("EXIT", b"EXIT"):
self.rec_queue.put(b"EXIT")
Expand Down

0 comments on commit 6fcad94

Please sign in to comment.