summaryrefslogtreecommitdiffstats
path: root/pica-client
diff options
context:
space:
mode:
authorAnton <anton@picapica>2019-03-13 21:45:51 +0400
committerAnton <anton@picapica>2019-03-13 21:45:51 +0400
commit40c136a8ae694a5809bc19ee78eafa2c828b03d6 (patch)
tree5df23b1ef8ab97d5321d739fd614fb1ed12292f8 /pica-client
parentbacee3a15a1589ba272184edb95e235dc91654ac (diff)
downloadpica-pica-40c136a8ae694a5809bc19ee78eafa2c828b03d6.tar.gz
pica-pica-40c136a8ae694a5809bc19ee78eafa2c828b03d6.zip
pica-client: bugfix, set self_aware = false everywhere where LostSelfAwareness() is emitted
Diffstat (limited to 'pica-client')
-rw-r--r--pica-client/skynet.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/pica-client/skynet.cpp b/pica-client/skynet.cpp
index 35b7e60..9f41f4e 100644
--- a/pica-client/skynet.cpp
+++ b/pica-client/skynet.cpp
@@ -174,6 +174,7 @@ void SkyNet::nodelink_closed(PICA_c2n *c2n, int error)
if (self_aware && c2n == active_nodelink)
{
active_nodelink = NULL;
+ self_aware = false;
emit LostSelfAwareness();
}
else
@@ -220,7 +221,10 @@ void SkyNet::nodelink_failed(PICA_c2n *c2n, int error)
}
}
if (connecting_nodes.empty())
+ {
+ self_aware = false;
emit LostSelfAwareness();
+ }
}
void SkyNet::multilogin_event(quint64 timestamp, QString node_addr, quint16 node_port)