mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 14:59:34 +01:00
Socket driver: Apply supybot.drivers.poll as soon as modified (do not require reconnect).
This commit is contained in:
parent
aff8cd30ad
commit
6b881d6509
@ -204,7 +204,10 @@ class SocketDriver(drivers.IrcDriver, drivers.ServersMixin):
|
|||||||
self.conn.settimeout(max(10, conf.supybot.drivers.poll()*10))
|
self.conn.settimeout(max(10, conf.supybot.drivers.poll()*10))
|
||||||
try:
|
try:
|
||||||
self.conn.connect(server)
|
self.conn.connect(server)
|
||||||
self.conn.settimeout(conf.supybot.drivers.poll())
|
def setTimeout():
|
||||||
|
self.conn.settimeout(conf.supybot.drivers.poll())
|
||||||
|
conf.supybot.drivers.poll.addCallback(setTimeout)
|
||||||
|
setTimeout()
|
||||||
if getattr(conf.supybot.networks, self.irc.network).ssl():
|
if getattr(conf.supybot.networks, self.irc.network).ssl():
|
||||||
assert globals().has_key('ssl')
|
assert globals().has_key('ssl')
|
||||||
self.conn = ssl.wrap_socket(self.conn)
|
self.conn = ssl.wrap_socket(self.conn)
|
||||||
|
Loading…
Reference in New Issue
Block a user