This commit is contained in:
Ben Davis
2017-07-16 22:09:45 +01:00
parent 913518a420
commit 8e168fec9a
@@ -225,6 +225,7 @@ extension TorrentPeerCommunicator: TCPConnectionDelegate {
func tcpConnection(_ sender: TCPConnectionProtocol, didConnectToHost host: String, port: UInt16) {
delegate?.peerConnected(self)
connection.readData(withTimeout: -1, tag: 0)
}
func tcpConnection(_ sender: TCPConnectionProtocol, didRead data: Data, withTag tag: Int) {