Jingle: removing hacks, rising the priority for io_add_watch callbacks.

This commit is contained in:
Tomasz Melcer 2007-08-15 09:28:32 +00:00
parent e2182686bf
commit b8087cdb53
2 changed files with 2 additions and 4 deletions

View File

@ -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

View File

@ -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: