Skip to content

Commit

Permalink
Handle connection refused gracefully
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr. Brandon Wiley committed Jan 21, 2021
1 parent cbc7990 commit 4bdc459
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/Transmission/Connection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ public class Connection
case .failed(_):
self.connectLock.leave()
return
case .waiting(let error):
self.connectLock.leave()
return
default:
return
}
Expand Down

0 comments on commit 4bdc459

Please sign in to comment.