File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Sources/Instrumentation/NetworkStatus Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ public class NetworkMonitor : NetworkMonitorProtocol {
20
20
monitor. cancel ( )
21
21
}
22
22
23
- init ( ) {
23
+ public init ( ) throws {
24
24
let pathHandler = { ( path: NWPath ) in
25
25
let availableInterfaces = path. availableInterfaces
26
26
let wifiInterface = self . getWifiInterface ( interfaces: availableInterfaces)
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ import Network
11
11
public class NetworkStatus {
12
12
public private( set) var networkInfo : CTTelephonyNetworkInfo
13
13
public private( set) var networkMonitor : NetworkMonitorProtocol
14
- public convenience init ( ) {
15
- self . init ( with: NetworkMonitor ( ) )
14
+ public convenience init ( ) throws {
15
+ self . init ( with: try NetworkMonitor ( ) )
16
16
}
17
17
18
18
public init ( with monitor: NetworkMonitorProtocol , info: CTTelephonyNetworkInfo = CTTelephonyNetworkInfo ( ) ) {
You can’t perform that action at this time.
0 commit comments