Exemple #1
0
 def _is_initialized(self, c):
     res = SQLCipherDatabase._is_initialized(self, c)
     if self._try == 1:
         self._is_initialized_invocations += 1
         if self._is_initialized_invocations == 2:
             t2.start()
             # hard to do better and have a generic test
             time.sleep(0.05)
     return res
 def _is_initialized(self, c):
     res = \
         SQLCipherDatabase._is_initialized(self, c)
     if self._try == 1:
         self._is_initialized_invocations += 1
         if self._is_initialized_invocations == 2:
             t2.start()
             # hard to do better and have a generic test
             time.sleep(0.05)
     return res