From 4bdc459504a18a9ba1c717777c38609c78fb09e4 Mon Sep 17 00:00:00 2001 From: "Dr. Brandon Wiley" Date: Thu, 21 Jan 2021 17:22:59 -0600 Subject: [PATCH] Handle connection refused gracefully --- Sources/Transmission/Connection.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sources/Transmission/Connection.swift b/Sources/Transmission/Connection.swift index 5338e2f..7966d94 100644 --- a/Sources/Transmission/Connection.swift +++ b/Sources/Transmission/Connection.swift @@ -50,6 +50,9 @@ public class Connection case .failed(_): self.connectLock.leave() return + case .waiting(let error): + self.connectLock.leave() + return default: return }