mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +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:
|
for instance in cls._instances:
|
||||||
if instance.conn in rlist:
|
if instance.conn in rlist:
|
||||||
instance._read()
|
instance._read()
|
||||||
|
except select.error: # 'Interrupted system call'
|
||||||
|
pass
|
||||||
finally:
|
finally:
|
||||||
cls._selecting[0] = False
|
cls._selecting[0] = False
|
||||||
for instance in cls._instances:
|
for instance in cls._instances:
|
||||||
|
Loading…
Reference in New Issue
Block a user