Browse Source

close active socket connection on page reload

CPP-GTK4
yggverse 2 months ago
parent
commit
16cbc2ac03
  1. 6
      src/app/browser/main/tab/page.cpp

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

@ -185,6 +185,12 @@ void Page::update() @@ -185,6 +185,12 @@ void Page::update()
void Page::navigation_reload(
const bool & ADD_HISTORY
) {
// Close previous socket connection (on active)
if (socket__connection != nullptr && socket__connection->is_connected())
{
socket__connection->close();
}
// Update navigation history?
if (ADD_HISTORY)
{

Loading…
Cancel
Save