diff --git a/QuickDrop/AppDelegate.swift b/QuickDrop/AppDelegate.swift index 91db1c9..15d241b 100644 --- a/QuickDrop/AppDelegate.swift +++ b/QuickDrop/AppDelegate.swift @@ -183,6 +183,8 @@ class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCenterDele func applicationWillTerminate(_: Notification) { UNUserNotificationCenter.current().removeAllDeliveredNotifications() + NearbyConnectionManager.shared.stopDeviceDiscovery() + NearbyConnectionManager.shared.becomeInvisible() }