Update connection-related logic

This commit is contained in:
codeking 2025-05-03 05:44:19 +02:00
parent 2c145e71ad
commit 9cc3a02512

View file

@ -404,6 +404,9 @@ class ConnectionController:
@staticmethod @staticmethod
def __should_renegotiate(profile: Union[SessionProfile, SystemProfile]): def __should_renegotiate(profile: Union[SessionProfile, SystemProfile]):
if not profile.has_subscription():
raise MissingSubscriptionError()
if profile.connection.needs_wireguard_configuration() and profile.has_wireguard_configuration(): if profile.connection.needs_wireguard_configuration() and profile.has_wireguard_configuration():
if profile.subscription.has_been_activated(): if profile.subscription.has_been_activated():