Commit f6624707 authored by Nicolas Delaby's avatar Nicolas Delaby

Test if connection is still open

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19313 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 958b993c
...@@ -372,6 +372,8 @@ class ZLDAPConnection( ...@@ -372,6 +372,8 @@ class ZLDAPConnection(
self._v_conn = None self._v_conn = None
if self._v_conn is None or not self.shouldBeOpen(): if self._v_conn is None or not self.shouldBeOpen():
return 0 return 0
elif not self.__ping():
return 0
else: else:
return 1 return 1
......
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