diff options
| author | Anton <anton@picapica> | 2019-03-13 21:45:51 +0400 |
|---|---|---|
| committer | Anton <anton@picapica> | 2019-03-13 21:45:51 +0400 |
| commit | 40c136a8ae694a5809bc19ee78eafa2c828b03d6 (patch) | |
| tree | 5df23b1ef8ab97d5321d739fd614fb1ed12292f8 /pica-client | |
| parent | bacee3a15a1589ba272184edb95e235dc91654ac (diff) | |
| download | pica-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.cpp | 4 |
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) |
