Skip to content

Commit e839cbd

Browse files
author
tuck1s
committed
comment out thread debug
1 parent 329a734 commit e839cbd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/consume-mail.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -537,11 +537,11 @@ def findFreeThreadSlot(th, thIdx):
537537
t = (thIdx+1) % len(th)
538538
while True:
539539
if th[t] == None: # empty slot
540-
print(totalWait)
540+
# print(totalWait) # debug
541541
return t
542542
elif not th[t].is_alive(): # thread just finished
543543
th[t] = None
544-
print(totalWait)
544+
# print(totalWait) # debug
545545
return t
546546
else: # keep searching
547547
t = (t+1) % len(th)
@@ -551,7 +551,6 @@ def findFreeThreadSlot(th, thIdx):
551551
time.sleep(sleepTime)
552552
totalWait += sleepTime
553553
if totalWait >= maxSleepTime:
554-
print('Waited {} seconds for a free thread - exiting'.format(totalWait))
555554
return None
556555

557556
# Wait for threads to complete, marking them as None when done. Get logging results text back from queue, as this is

0 commit comments

Comments
 (0)