mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
close active socket connection on page reload
This commit is contained in:
parent
734bb850ad
commit
16cbc2ac03
1 changed files with 6 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue