You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by cs...@apache.org on 2017/09/09 20:09:02 UTC

[incubator-openwhisk-package-kafka] branch master updated: Prevent infinite exception loop in Service thread (#215)

This is an automated email from the ASF dual-hosted git repository.

csantanapr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-package-kafka.git


The following commit(s) were added to refs/heads/master by this push:
     new 0c6b5ea  Prevent infinite exception loop in Service thread (#215)
0c6b5ea is described below

commit 0c6b5ea0955093cb58a0300fee92ebf85a0707df
Author: James Dubee <jw...@us.ibm.com>
AuthorDate: Sat Sep 9 16:09:01 2017 -0400

    Prevent infinite exception loop in Service thread (#215)
---
 provider/database.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/provider/database.py b/provider/database.py
index a9cef28..7a7ab41 100644
--- a/provider/database.py
+++ b/provider/database.py
@@ -53,8 +53,9 @@ class Database:
             self.database = self.client.create_database(self.dbname)
 
     def destroy(self):
-        self.client.disconnect()
-        self.client = None
+        if self.client is not None:
+            self.client.disconnect()
+            self.client = None
 
     def disableTrigger(self, triggerFQN, status_code):
         try:

-- 
To stop receiving notification emails like this one, please contact
['"commits@openwhisk.apache.org" <co...@openwhisk.apache.org>'].