diff --git a/ListenerGS/GSView.swift b/ListenerGS/GSView.swift index 2090cdb..8cbe263 100644 --- a/ListenerGS/GSView.swift +++ b/ListenerGS/GSView.swift @@ -90,6 +90,8 @@ struct GSView: View { } .alert(item: $connection.errorMessage) { errorMessage in Alert(title:Text(errorMessage.title), message: Text(errorMessage.message)) + }.onDisappear { + connection.disconnect() } Text(connection.textHeard) diff --git a/ListenerGS/Info.plist b/ListenerGS/Info.plist index d3fb390..176e946 100644 --- a/ListenerGS/Info.plist +++ b/ListenerGS/Info.plist @@ -19,7 +19,7 @@ CFBundleShortVersionString 1.0 CFBundleVersion - 780 + 785 LSApplicationCategoryType public.app-category.utilities LSRequiresIPhoneOS