@@ -50,27 +50,27 @@ class MapConnectionStatusOperation: AsyncOperation {
50
50
fetchTunnelStatus ( tunnel: tunnel) { observedState in
51
51
switch observedState {
52
52
case let . connected( connectionState) :
53
- connectionState. isNetworkReachable
53
+ return connectionState. isNetworkReachable
54
54
? . connected( connectionState. selectedRelay)
55
55
: . waitingForConnectivity( . noConnection)
56
56
case let . connecting( connectionState) :
57
- connectionState. isNetworkReachable
57
+ return connectionState. isNetworkReachable
58
58
? . connecting( connectionState. selectedRelay)
59
59
: . waitingForConnectivity( . noConnection)
60
60
#if DEBUG
61
61
case let . negotiatingKey( connectionState) :
62
- connectionState. isNetworkReachable
62
+ return connectionState. isNetworkReachable
63
63
? . negotiatingKey( connectionState. selectedRelay)
64
64
: . waitingForConnectivity( . noConnection)
65
65
#endif
66
66
case let . reconnecting( connectionState) :
67
- connectionState. isNetworkReachable
67
+ return connectionState. isNetworkReachable
68
68
? . reconnecting( connectionState. selectedRelay)
69
69
: . waitingForConnectivity( . noConnection)
70
70
case let . error( blockedState) :
71
- . error( blockedState. reason)
71
+ return . error( blockedState. reason)
72
72
case . initial, . disconnecting, . disconnected:
73
- . none
73
+ return . none
74
74
}
75
75
}
76
76
return
0 commit comments