diff options
Diffstat (limited to 'ZeroTier One/NetworkMonitor.swift')
-rw-r--r-- | ZeroTier One/NetworkMonitor.swift | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ZeroTier One/NetworkMonitor.swift b/ZeroTier One/NetworkMonitor.swift index c744e6e8..e96d7aac 100644 --- a/ZeroTier One/NetworkMonitor.swift +++ b/ZeroTier One/NetworkMonitor.swift @@ -50,6 +50,7 @@ class NetworkMonitor: NSObject { } func updateNetworkInfo() { + //NSLog("updateNetworkInfo") let filePath = dataFile() if NSFileManager.defaultManager().fileExistsAtPath(filePath) { @@ -62,7 +63,7 @@ class NetworkMonitor: NSObject { } } - ServiceCom.getNetworkList() { (networkList) -> Void in + ServiceCom.sharedInstance.getNetworkList() { (networkList) -> Void in self.receivedNetworks = networkList NSOperationQueue.mainQueue().addOperationWithBlock() { () -> Void in @@ -70,7 +71,7 @@ class NetworkMonitor: NSObject { } } - ServiceCom.getNodeStatus() { nodeStatus -> Void in + ServiceCom.sharedInstance.getNodeStatus() { nodeStatus -> Void in NSOperationQueue.mainQueue().addOperationWithBlock() { () -> Void in let nc = NSNotificationCenter.defaultCenter() |