mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 03:33:11 +01:00
Socket: Only catch select.error if it is an interupted system call.
This commit is contained in:
parent
75654a4544
commit
dce3c97fe4
@ -36,6 +36,7 @@ from __future__ import division
|
||||
|
||||
import sys
|
||||
import time
|
||||
import errno
|
||||
import select
|
||||
import socket
|
||||
import supybot.log as log
|
||||
@ -164,8 +165,10 @@ 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
|
||||
except select.error as e:
|
||||
if e.args[0] != errno.EINTR:
|
||||
# 'Interrupted system call'
|
||||
raise
|
||||
finally:
|
||||
cls._selecting[0] = False
|
||||
for instance in cls._instances:
|
||||
|
Loading…
Reference in New Issue
Block a user