aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiels Ole Salscheider <niels_ole@salscheider-online.de>2017-01-21 21:26:10 +0100
committerNiels Ole Salscheider <niels_ole@salscheider-online.de>2017-02-12 11:48:48 +0100
commitb4fad5cb411bf42054f0ce6f8693270f0f13213b (patch)
tree76993af04e9f594050338014159e27842d5ca019
parentNeed to incrememt version in the right file. (diff)
downloadirker-b4fad5cb411bf42054f0ce6f8693270f0f13213b.tar.xz
Only close the connection if it still exists
self.connection is set to None if there is a timeout.
-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"