mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 17:45:28 +00:00
validate connection step
This commit is contained in:
parent
c4086d866f
commit
9a0e9d3f17
1 changed files with 78 additions and 64 deletions
|
|
@ -131,11 +131,24 @@ void Page::update()
|
|||
), .25
|
||||
);
|
||||
|
||||
try
|
||||
{
|
||||
GioSocketConnection_RefPtr = GioSocketClient_RefPtr->connect_to_uri_finish(
|
||||
result
|
||||
);
|
||||
}
|
||||
|
||||
// Request
|
||||
catch (const Glib::Error & EXCEPTION)
|
||||
{
|
||||
set(
|
||||
pageNavbar->get_request_host(),
|
||||
EXCEPTION.what(), 1
|
||||
);
|
||||
}
|
||||
|
||||
// Connection established, begin request
|
||||
if (GioSocketConnection_RefPtr != nullptr)
|
||||
{
|
||||
const Glib::ustring request = pageNavbar->get_request_text() + "\r\n";
|
||||
|
||||
GioSocketConnection_RefPtr->get_output_stream()->write_async(
|
||||
|
|
@ -212,6 +225,7 @@ void Page::update()
|
|||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue