From c6ab3b57db7312df74b6da011d0de1ec232d42ff Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Wed, 20 Mar 2019 17:18:08 +0100 Subject: [PATCH] Fix a few return in wrong scope --- TunnelKit/Sources/Core/SessionProxy.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TunnelKit/Sources/Core/SessionProxy.swift b/TunnelKit/Sources/Core/SessionProxy.swift index 366daa0..58a75b6 100644 --- a/TunnelKit/Sources/Core/SessionProxy.swift +++ b/TunnelKit/Sources/Core/SessionProxy.swift @@ -992,8 +992,8 @@ public class SessionProxy { self?.queue.sync { log.error("Failed LINK write during control flush: \(error)") self?.deferStop(.shutdown, SessionError.failedLinkWrite) - return } + return } } } @@ -1115,8 +1115,8 @@ public class SessionProxy { self?.queue.sync { log.error("Data: Failed LINK write during send data: \(error)") self?.deferStop(.shutdown, SessionError.failedLinkWrite) - return } + return } // log.verbose("Data: \(encryptedPackets.count) packets successfully written to LINK") } @@ -1161,8 +1161,8 @@ public class SessionProxy { self?.queue.sync { log.error("Failed LINK write during send ack for packetId \(controlPacket.packetId): \(error)") self?.deferStop(.shutdown, SessionError.failedLinkWrite) - return } + return } log.debug("Ack successfully written to LINK for packetId \(controlPacket.packetId)") }