mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +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 schedule
|
||||
|
||||
instances = 0
|
||||
originalPoll = conf.poll
|
||||
|
||||
class SocketDriver(drivers.IrcDriver):
|
||||
def __init__(self, (server, port), irc):
|
||||
global instances
|
||||
instances += 1
|
||||
conf.poll = originalPoll / instances
|
||||
drivers.IrcDriver.__init__(self)
|
||||
self.server = (server, port)
|
||||
self.irc = irc
|
||||
|
Loading…
Reference in New Issue
Block a user