Skip to content

Commit 39f4f85

Browse files
author
Jonathan Warren
committed
removed apparently unnecessary loop
1 parent 1f8eee4 commit 39f4f85

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/bitmessageqt/__init__.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2940,16 +2940,12 @@ def run(self):
29402940
try:
29412941
import gevent
29422942
except ImportError as ex:
2943-
print "cannot find gevent"
29442943
gevent = None
29452944
else:
29462945
def mainloop(app):
29472946
while True:
29482947
app.processEvents()
2949-
while app.hasPendingEvents():
2950-
app.processEvents()
2951-
gevent.sleep(0.01)
2952-
gevent.sleep(0.01) # don't appear to get here but cooperate again
2948+
gevent.sleep(0.01)
29532949
def testprint():
29542950
#print 'this is running'
29552951
gevent.spawn_later(1, testprint)

0 commit comments

Comments
 (0)