Commit 2b25ca85 authored by Aurel's avatar Aurel

compare conn with their UUID instead of using "is" operator, this make

unit test writing easier


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@589 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent ee88b961
......@@ -289,7 +289,7 @@ class Application(object):
except Empty:
break
if packet is None:
if conn is target_conn:
if conn.getUUID() == target_conn.getUUID():
raise NEOStorageConnectionFailure('connection closed')
else:
continue
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment