From c84939744f5d3212abcf0633dda597ad7e2a3b48 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Sun, 23 Apr 2017 16:33:42 -0400 Subject: [PATCH] oops, fix it properly --- src/wormhole/transit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wormhole/transit.py b/src/wormhole/transit.py index addb3cb..ebeb960 100644 --- a/src/wormhole/transit.py +++ b/src/wormhole/transit.py @@ -244,7 +244,7 @@ class Connection(protocol.Protocol, policies.TimeoutMixin): if self.state == "records": return self.dataReceivedRECORDS() if self.state == "hung up": - pass + return if isinstance(self.state, Exception): # for tests raise self.state raise ValueError("internal error: unknown state %s" % (self.state,))