Created
February 10, 2018 15:42
-
-
Save EricADockery/bd9e9748bb765fc9397a6ed608152779 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deinit { | |
if let disconnectNotificationObserver = disconnectNotificationObserver { | |
NotificationCenter.default.removeObserver(disconnectNotificationObserver) | |
} | |
if let connectedNotificationObserver = connectedNotificationObserver { | |
NotificationCenter.default.removeObserver(connectedNotificationObserver) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment