mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Changed to make sure every SocketDriver times out in a conf.poll length.
This commit is contained in:
parent
5313428ca7
commit
38d1896da3
@ -44,8 +44,14 @@ import drivers
|
|||||||
import ircmsgs
|
import ircmsgs
|
||||||
import schedule
|
import schedule
|
||||||
|
|
||||||
|
instances = 0
|
||||||
|
originalPoll = conf.poll
|
||||||
|
|
||||||
class SocketDriver(drivers.IrcDriver):
|
class SocketDriver(drivers.IrcDriver):
|
||||||
def __init__(self, (server, port), irc):
|
def __init__(self, (server, port), irc):
|
||||||
|
global instances
|
||||||
|
instances += 1
|
||||||
|
conf.poll = originalPoll / instances
|
||||||
drivers.IrcDriver.__init__(self)
|
drivers.IrcDriver.__init__(self)
|
||||||
self.server = (server, port)
|
self.server = (server, port)
|
||||||
self.irc = irc
|
self.irc = irc
|
||||||
|
Loading…
Reference in New Issue
Block a user