Browse Source

validate connection step

CPP-GTK4
yggverse 3 months ago
parent
commit
9a0e9d3f17
  1. 16
      src/app/browser/main/tab/page.cpp

16
src/app/browser/main/tab/page.cpp

@ -131,11 +131,24 @@ void Page::update()
), .25 ), .25
); );
try
{
GioSocketConnection_RefPtr = GioSocketClient_RefPtr->connect_to_uri_finish( GioSocketConnection_RefPtr = GioSocketClient_RefPtr->connect_to_uri_finish(
result result
); );
}
catch (const Glib::Error & EXCEPTION)
{
set(
pageNavbar->get_request_host(),
EXCEPTION.what(), 1
);
}
// Request // Connection established, begin request
if (GioSocketConnection_RefPtr != nullptr)
{
const Glib::ustring request = pageNavbar->get_request_text() + "\r\n"; const Glib::ustring request = pageNavbar->get_request_text() + "\r\n";
GioSocketConnection_RefPtr->get_output_stream()->write_async( GioSocketConnection_RefPtr->get_output_stream()->write_async(
@ -212,6 +225,7 @@ void Page::update()
} }
); );
} }
}
); );
} }

Loading…
Cancel
Save