From 747f622e4dd79462dfe1831546bbb3a8c6bc340a Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 16 Sep 2024 11:20:53 +0300 Subject: [PATCH] use socket api --- src/app/browser/main/tab/page.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/browser/main/tab/page.cpp b/src/app/browser/main/tab/page.cpp index ffc2ce64..fdcbec86 100644 --- a/src/app/browser/main/tab/page.cpp +++ b/src/app/browser/main/tab/page.cpp @@ -320,7 +320,7 @@ void Page::navigation_reload( } // Connection established, begin request - if (socket__connection != nullptr) + if (Socket::Connection::is_active(socket__connection)) // @TODO { // Build gemini protocol request const Glib::ustring SOCKET__REQUEST = Glib::ustring::sprintf( @@ -350,6 +350,7 @@ void Page::navigation_reload( action__update->activate(); // Response + // if (Socket::Connection::is_active(socket__connection)) // @TODO socket__connection->get_input_stream()->read_all_async( // | read_async @TODO buffer, sizeof(