close active socket connection on page reload

This commit is contained in:
yggverse 2024-09-16 09:42:46 +03:00
parent 734bb850ad
commit 16cbc2ac03

View File

@ -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)
{