diff --git a/core/controllers/ApplicationController.py b/core/controllers/ApplicationController.py index 1dc06d6..35c085a 100644 --- a/core/controllers/ApplicationController.py +++ b/core/controllers/ApplicationController.py @@ -28,7 +28,7 @@ class ApplicationController: return Application.all() @staticmethod - def launch(version: ApplicationVersion, profile: SessionProfile, port_number: int = None, asynchronous: bool = True, profile_observer: Optional[ProfileObserver] = None): + def launch(version: ApplicationVersion, profile: SessionProfile, port_number: int = None, asynchronous: bool = False, profile_observer: Optional[ProfileObserver] = None): from core.controllers.ProfileController import ProfileController diff --git a/core/controllers/ProfileController.py b/core/controllers/ProfileController.py index d5d2b36..6cf66a3 100644 --- a/core/controllers/ProfileController.py +++ b/core/controllers/ProfileController.py @@ -42,7 +42,7 @@ class ProfileController: profile_observer.notify('updated', profile) @staticmethod - def enable(profile: Union[SessionProfile, SystemProfile], force: bool = False, pristine: bool = False, asynchronous: bool = True, profile_observer: ProfileObserver = None, application_version_observer: ApplicationVersionObserver = None, connection_observer: ConnectionObserver = None): + def enable(profile: Union[SessionProfile, SystemProfile], force: bool = False, pristine: bool = False, asynchronous: bool = False, profile_observer: ProfileObserver = None, application_version_observer: ApplicationVersionObserver = None, connection_observer: ConnectionObserver = None): from core.controllers.ConnectionController import ConnectionController diff --git a/main.py b/main.py index c9247e4..7066671 100644 --- a/main.py +++ b/main.py @@ -191,7 +191,7 @@ if __name__ == '__main__': if profile is not None: try: - ProfileController.enable(profile, force=arguments.force, pristine=arguments.pristine, profile_observer=profile_observer, application_version_observer=application_version_observer, connection_observer=connection_observer) + ProfileController.enable(profile, force=arguments.force, pristine=arguments.pristine, asynchronous=True, profile_observer=profile_observer, application_version_observer=application_version_observer, connection_observer=connection_observer) except (InvalidSubscriptionError, MissingSubscriptionError) as exception: @@ -239,7 +239,7 @@ if __name__ == '__main__': else: raise RuntimeError('The subscription could not be activated. Please try again later.') - ProfileController.enable(profile, force=arguments.force, pristine=arguments.pristine, profile_observer=profile_observer, application_version_observer=application_version_observer, connection_observer=connection_observer) + ProfileController.enable(profile, force=arguments.force, pristine=arguments.pristine, asynchronous=True, profile_observer=profile_observer, application_version_observer=application_version_observer, connection_observer=connection_observer) elif manage_subscription_input == '2': @@ -251,7 +251,7 @@ if __name__ == '__main__': if subscription is not None: ProfileController.attach_subscription(profile, subscription) - ProfileController.enable(profile, force=arguments.force, pristine=arguments.pristine, profile_observer=profile_observer, application_version_observer=application_version_observer, connection_observer=connection_observer) + ProfileController.enable(profile, force=arguments.force, pristine=arguments.pristine, asynchronous=True, profile_observer=profile_observer, application_version_observer=application_version_observer, connection_observer=connection_observer) else: