Insta geht wieder, wegen dem Domain Umzug
Dieser Commit ist enthalten in:
@ -129,18 +129,18 @@ class SessionController(QObject):
|
||||
self.login_failed.emit(account_id, str(e))
|
||||
|
||||
def _cancel_login(self, account_id: str):
|
||||
"""Bricht den Login-Prozess ab"""
|
||||
"""Bricht den Login-Prozess ab mit Guard-Freigabe"""
|
||||
logger.info(f"Login für Account {account_id} wurde abgebrochen")
|
||||
|
||||
# Feature 5: Guard freigeben bei Cancel
|
||||
# HINWEIS: Worker Thread gibt Guard in seinem finally-Block frei
|
||||
# Nur freigeben wenn Worker noch nicht gestartet (Guard locked aber kein Worker)
|
||||
# Guard IMMER freigeben bei Cancel (einfacher + robuster)
|
||||
# Doppelte Freigabe ist kein Problem (wird von ProcessGuard ignoriert)
|
||||
from utils.process_guard import get_guard
|
||||
guard = get_guard()
|
||||
if guard.is_locked() and not (hasattr(self, 'login_worker') and self.login_worker and self.login_worker.isRunning()):
|
||||
logger.warning("Guard war locked aber Worker nicht aktiv - gebe Guard frei")
|
||||
if guard.is_locked():
|
||||
guard.end(success=False)
|
||||
logger.info("Guard freigegeben bei Login-Cancel")
|
||||
|
||||
# Dialog schließen
|
||||
if hasattr(self, 'login_dialog') and self.login_dialog:
|
||||
self.login_dialog.close()
|
||||
self.login_dialog = None
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren