Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Mirror
sjrpc
Commits
ca2b77e5
Commit
ca2b77e5
authored
Jan 31, 2011
by
Antoine Millet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug with RpcConnect shutdown method when socket is already closed.
parent
2540b994
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
sjrpc/core/rpcconnection.py
sjrpc/core/rpcconnection.py
+4
-1
No files found.
sjrpc/core/rpcconnection.py
View file @
ca2b77e5
...
...
@@ -350,7 +350,10 @@ class RpcConnection(object):
:type callback: :class:`str` or callable or None
'''
self
.
_sock
.
close
()
try
:
self
.
_sock
.
close
()
except
socket
.
error
as
err
:
logging
.
warning
(
'Error while socket close: %s.'
,
err
)
# Release all running calls from this connection:
for
call
in
self
.
_calls
.
values
():
...
...
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