Skip to content

Commit

Permalink
increased time.sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
DoTheEvo committed Mar 28, 2015
1 parent 345dfae commit 0ee23b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion angrysearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ def __init__(self, sudo_passwd, parent=None):

def run(self):
the_temp_file = '/tmp/angry_{}'.format(os.getpid())

with open(the_temp_file, 'w+', encoding='utf-8') as self.temp_file:
self.db_update_signal.emit('label_1')
time.sleep(0.2) # to maybe fix rare skip of the first ➔
time.sleep(1) # to maybe fix occasional skip of the first ➔
self.sudo_updatedb()

self.db_update_signal.emit('label_2')
Expand Down

0 comments on commit 0ee23b1

Please sign in to comment.