diff --git a/src/common/xmpp/transports_nb.py b/src/common/xmpp/transports_nb.py index f727bc1e5..c5115cc1c 100644 --- a/src/common/xmpp/transports_nb.py +++ b/src/common/xmpp/transports_nb.py @@ -586,7 +586,6 @@ class NonBlockingTcp(PlugIn, IdleObject): '''Append raw_data to the queue of messages to be send. If supplied data is unicode string, encode it to utf-8. ''' - now = True if self.state <= 0: return r = raw_data diff --git a/src/gajim.py b/src/gajim.py index ec18f4caa..bfb3052a4 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -367,8 +367,7 @@ class GlibIdleQueue(idlequeue.IdleQueue): ''' this method is called when we plug a new idle object. Start listening for events from fd ''' - res = gobject.io_add_watch(fd, flags, self.process_events, - priority=gobject.PRIORITY_LOW) + res = gobject.io_add_watch(fd, flags, self.process_events) # store the id of the watch, so that we can remove it on unplug self.events[fd] = res @@ -2369,7 +2368,7 @@ class Interface: # pygtk2.8+ on win, breaks io_add_watch. # We use good old select.select() - if True or os.name == 'nt': + if os.name == 'nt': gajim.idlequeue = idlequeue.SelectIdleQueue() else: # in a nongui implementation, just call: