mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Socket: Prevent crash caused when a signal is received while using select. Closes GH-477.
This commit is contained in:
parent
d0476c9eb2
commit
75654a4544
@ -164,6 +164,8 @@ class SocketDriver(drivers.IrcDriver, drivers.ServersMixin):
|
||||
for instance in cls._instances:
|
||||
if instance.conn in rlist:
|
||||
instance._read()
|
||||
except select.error: # 'Interrupted system call'
|
||||
pass
|
||||
finally:
|
||||
cls._selecting[0] = False
|
||||
for instance in cls._instances:
|
||||
|
Loading…
Reference in New Issue
Block a user