From 9cc3a025127c04e7f6f7f533c7714ea4ac368bd2 Mon Sep 17 00:00:00 2001
From: codeking <t@libertyoceanhorizons.com>
Date: Sat, 3 May 2025 05:44:19 +0200
Subject: [PATCH] Update connection-related logic

---
 core/controllers/ConnectionController.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/core/controllers/ConnectionController.py b/core/controllers/ConnectionController.py
index 9d6274c..cb73391 100644
--- a/core/controllers/ConnectionController.py
+++ b/core/controllers/ConnectionController.py
@@ -404,6 +404,9 @@ class ConnectionController:
     @staticmethod
     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.subscription.has_been_activated():