Fix a few return in wrong scope

This commit is contained in:
Davide De Rosa 2019-03-20 17:18:08 +01:00
parent 6245b5d28d
commit c6ab3b57db
1 changed files with 3 additions and 3 deletions

View File

@ -992,8 +992,8 @@ public class SessionProxy {
self?.queue.sync { self?.queue.sync {
log.error("Failed LINK write during control flush: \(error)") log.error("Failed LINK write during control flush: \(error)")
self?.deferStop(.shutdown, SessionError.failedLinkWrite) self?.deferStop(.shutdown, SessionError.failedLinkWrite)
return
} }
return
} }
} }
} }
@ -1115,8 +1115,8 @@ public class SessionProxy {
self?.queue.sync { self?.queue.sync {
log.error("Data: Failed LINK write during send data: \(error)") log.error("Data: Failed LINK write during send data: \(error)")
self?.deferStop(.shutdown, SessionError.failedLinkWrite) self?.deferStop(.shutdown, SessionError.failedLinkWrite)
return
} }
return
} }
// log.verbose("Data: \(encryptedPackets.count) packets successfully written to LINK") // log.verbose("Data: \(encryptedPackets.count) packets successfully written to LINK")
} }
@ -1161,8 +1161,8 @@ public class SessionProxy {
self?.queue.sync { self?.queue.sync {
log.error("Failed LINK write during send ack for packetId \(controlPacket.packetId): \(error)") log.error("Failed LINK write during send ack for packetId \(controlPacket.packetId): \(error)")
self?.deferStop(.shutdown, SessionError.failedLinkWrite) self?.deferStop(.shutdown, SessionError.failedLinkWrite)
return
} }
return
} }
log.debug("Ack successfully written to LINK for packetId \(controlPacket.packetId)") log.debug("Ack successfully written to LINK for packetId \(controlPacket.packetId)")
} }