summaryrefslogtreecommitdiffstats
path: root/pica-client/skynet.cpp
diff options
context:
space:
mode:
authorAnton <anton@picapica>2019-03-15 17:56:29 +0400
committerAnton <anton@picapica>2019-03-15 17:56:29 +0400
commit47431e88cb6cb245ae1d977f5eaff61b52f96a43 (patch)
tree95dc71034f5c21e4893b22f63ccd668bd1004854 /pica-client/skynet.cpp
parent1d2fe18b6fc4ce56cc6e5d5289a0c11125720440 (diff)
downloadpica-pica-47431e88cb6cb245ae1d977f5eaff61b52f96a43.tar.gz
pica-pica-47431e88cb6cb245ae1d977f5eaff61b52f96a43.zip
pica-client: implement cleaning inactive nodes
Diffstat (limited to 'pica-client/skynet.cpp')
-rw-r--r--pica-client/skynet.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/pica-client/skynet.cpp b/pica-client/skynet.cpp
index 9f41f4e..bf02e11 100644
--- a/pica-client/skynet.cpp
+++ b/pica-client/skynet.cpp
@@ -129,6 +129,8 @@ void SkyNet::nodelink_activated(PICA_c2n *c2n)
self_aware = true;
active_nodelink = c2n;
+ nodes.MakeClean();
+
emit BecameSelfAware();
//
//restore old peer connections, if any
@@ -165,8 +167,6 @@ void SkyNet::nodelink_activated(PICA_c2n *c2n)
retry_timer_id = startTimer(10000);
//
}
-
-
}
void SkyNet::nodelink_closed(PICA_c2n *c2n, int error)