Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Mirror
sjrpc
Commits
c3e988ad
Commit
c3e988ad
authored
Jan 31, 2011
by
Antoine Millet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug with poll unregister.
parent
3b25b83c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
sjrpc/server/simple.py
sjrpc/server/simple.py
+4
-1
No files found.
sjrpc/server/simple.py
View file @
c3e988ad
...
...
@@ -43,7 +43,10 @@ class SimpleRpcServer(ConnectionManager):
def
shutdown_client
(
self
,
fd
):
conn
=
self
.
_clients
.
get
(
fd
)
self
.
_poll
.
unregister
(
fd
)
try
:
self
.
_poll
.
unregister
(
fd
)
except
IOError
:
pass
if
fd
is
not
None
:
try
:
del
self
.
_clients
[
fd
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment