summaryrefslogtreecommitdiffstats
path: root/pica-client/skynet.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pica-client/skynet.cpp')
-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)