mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-30 21:14:14 +00:00
close active socket connection on page reload
This commit is contained in:
parent
734bb850ad
commit
16cbc2ac03
@ -185,6 +185,12 @@ void Page::update()
|
|||||||
void Page::navigation_reload(
|
void Page::navigation_reload(
|
||||||
const bool & ADD_HISTORY
|
const bool & ADD_HISTORY
|
||||||
) {
|
) {
|
||||||
|
// Close previous socket connection (on active)
|
||||||
|
if (socket__connection != nullptr && socket__connection->is_connected())
|
||||||
|
{
|
||||||
|
socket__connection->close();
|
||||||
|
}
|
||||||
|
|
||||||
// Update navigation history?
|
// Update navigation history?
|
||||||
if (ADD_HISTORY)
|
if (ADD_HISTORY)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user