Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZEO
Commits
85721ab8
Commit
85721ab8
authored
May 27, 2016
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move wait up to client-runner, because it doesn't depend on ClientThread.
parent
6f7a54d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/ZEO/asyncio/client.py
src/ZEO/asyncio/client.py
+5
-5
No files found.
src/ZEO/asyncio/client.py
View file @
85721ab8
...
...
@@ -760,6 +760,11 @@ class ClientRunner:
# addrs aren't used until the client disconnects.xs
self
.
client
.
addrs
=
addrs
def
wait
(
self
,
timeout
=
None
):
if
timeout
is
None
:
timeout
=
self
.
timeout
self
.
wait_for_result
(
self
.
client
.
connected
,
timeout
)
class
ClientThread
(
ClientRunner
):
"""Thread wrapper for client interface
...
...
@@ -805,11 +810,6 @@ class ClientThread(ClientRunner):
loop
.
close
()
logger
.
debug
(
'Stopping client thread'
)
def
wait
(
self
,
timeout
=
None
):
if
timeout
is
None
:
timeout
=
self
.
timeout
self
.
wait_for_result
(
self
.
client
.
connected
,
timeout
)
closed
=
False
def
close
(
self
):
if
not
self
.
closed
:
...
...
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