Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mitogen
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
mitogen
Commits
0f087833
Commit
0f087833
authored
Mar 26, 2018
by
David Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core: fix NameError on disconnect
parent
198bec33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
mitogen/core.py
mitogen/core.py
+2
-3
No files found.
mitogen/core.py
View file @
0f087833
...
...
@@ -863,7 +863,7 @@ class Context(object):
def
__reduce__
(
self
):
return
_unpickle_context
,
(
self
.
context_id
,
self
.
name
)
def
on_disconnect
(
self
,
broker
):
def
on_disconnect
(
self
):
_v
and
LOG
.
debug
(
'%r.on_disconnect()'
,
self
)
fire
(
self
,
'disconnect'
)
...
...
@@ -1141,7 +1141,7 @@ class Router(object):
stream_
=
self
.
_stream_by_id
.
get
(
context
.
context_id
)
if
stream_
is
stream
:
del
self
.
_stream_by_id
[
context
.
context_id
]
context
.
on_disconnect
(
broker
)
context
.
on_disconnect
()
def
on_broker_shutdown
(
self
):
for
context
in
self
.
_context_by_id
.
itervalues
():
...
...
@@ -1487,7 +1487,6 @@ class ExternalContext(object):
# Reopen with line buffering.
sys
.
stdout
=
os
.
fdopen
(
1
,
'w'
,
1
)
def
_dispatch_one
(
self
,
msg
):
data
=
msg
.
unpickle
(
throw
=
False
)
_v
and
LOG
.
debug
(
'_dispatch_calls(%r)'
,
data
)
...
...
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