Update connection-related logic
This commit is contained in:
parent
2c145e71ad
commit
9cc3a02512
1 changed files with 3 additions and 0 deletions
|
@ -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():
|
||||||
|
|
Loading…
Reference in a new issue