aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2017-02-12 12:28:20 +0000
committerEric S. Raymond <esr@thyrsus.com>2017-02-12 12:28:20 +0000
commitdc0f65a7846a3922338e72d8c6140053fe914b54 (patch)
treedbf8a2ca1fd98803ace1332f6be6efb8e088ef0f
parentMerge branch 'service-user' into 'master' (diff)
parentOnly close the connection if it still exists (diff)
downloadirker-dc0f65a7846a3922338e72d8c6140053fe914b54.tar.xz
Merge branch 'conn_fix' into 'master'
Only close the connection if it still exists See merge request !16
-rwxr-xr-xirkerd3
1 files changed, 2 insertions, 1 deletions
diff --git a/irkerd b/irkerd
index 24abf08..7dd8c3f 100755
--- a/irkerd
+++ b/irkerd
@@ -664,7 +664,8 @@ class Connection:
LOG.debug(traceback.format_exc())
finally:
# Make sure we don't leave any zombies behind
- self.connection.close()
+ if self.connection:
+ self.connection.close()
def live(self):
"Should this connection not be scavenged?"
return self.status != "expired"