Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
3a363b85
Commit
3a363b85
authored
Jan 17, 2012
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When a connection is closed, it's not connecting anymore.
No kidding ! And there was a test for this. Muhaha.
parent
9e6a4d3c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
neo/lib/connection.py
neo/lib/connection.py
+1
-0
neo/tests/testConnection.py
neo/tests/testConnection.py
+1
-1
No files found.
neo/lib/connection.py
View file @
3a363b85
...
...
@@ -506,6 +506,7 @@ class Connection(BaseConnection):
self
.
_handlers
.
clear
()
if
self
.
connecting
:
handler
.
connectionFailed
(
self
)
self
.
connecting
=
False
else
:
handler
.
connectionClosed
(
self
)
...
...
neo/tests/testConnection.py
View file @
3a363b85
...
...
@@ -731,7 +731,7 @@ class ConnectionTests(NeoUnitTestBase):
self
.
_checkConnectionCompleted
(
1
)
self
.
_checkReaderAdded
(
1
)
bc
.
writable
()
self
.
assert
Tru
e
(
bc
.
connecting
)
self
.
assert
Fals
e
(
bc
.
connecting
)
self
.
assertFalse
(
bc
.
pending
())
self
.
assertFalse
(
bc
.
aborted
)
self
.
_checkWriteBuf
(
bc
,
''
)
...
...
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