From 175cac953e0d2ee11fa9b092258555533755efed Mon Sep 17 00:00:00 2001 From: spinline Date: Sun, 8 Feb 2026 15:57:24 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20SSE=20ba=C4=9Flant=C4=B1s=C4=B1=20sadece?= =?UTF-8?q?=20giri=C5=9F=20yap=C4=B1ld=C4=B1ktan=20sonra=20ba=C5=9Flat?= =?UTF-8?q?=C4=B1lacak=20=C5=9Fekilde=20d=C3=BCzeltildi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/store.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/src/store.rs b/frontend/src/store.rs index badc122..b6bece2 100644 --- a/frontend/src/store.rs +++ b/frontend/src/store.rs @@ -143,6 +143,12 @@ pub fn provide_torrent_store() { // Initialize SSE connection with auto-reconnect create_effect(move |_| { + // Sadece kullanıcı giriş yapmışsa bağlantıyı başlat + if user.get().is_none() { + logging::log!("SSE: User not authenticated, skipping connection."); + return; + } + spawn_local(async move { let mut backoff_ms: u32 = 1000; // Start with 1 second let max_backoff_ms: u32 = 30000; // Max 30 seconds