aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-05-16 12:02:40 +0200
committerdec05eba <dec05eba@protonmail.com>2018-05-16 12:02:43 +0200
commit33f2c2b1d29731f890d3835032d911610e4fc69d (patch)
treecbf0cd857954d852022d97a68f3c8e3b4f9bbe46 /src/main.cpp
parente1dbec0b78671a4e90e578a2ab67b7b114d3b57b (diff)
Unload content if it's not visible on the screen for a while
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 39ccd43..56c38a6 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -138,6 +138,7 @@ int main(int argc, char **argv)
callbackFuncs.createNodeCallbackFunc = [&waitingToJoinChannels, &database, &channels, &channelMessageMutex, &waitingToJoin, &localNodeUsers](const odhtdb::DatabaseCreateNodeRequest &request)
{
lock_guard<recursive_mutex> lock(channelMessageMutex);
+ //printf("Create node callback func %s\n", request.nodeHash->toString().c_str());
auto nodeUserData = localNodeUsers.find(*request.nodeHash);
if(nodeUserData == localNodeUsers.end()) return;
@@ -176,6 +177,7 @@ int main(int argc, char **argv)
callbackFuncs.addNodeCallbackFunc = [&channels, &channelMessageMutex](const odhtdb::DatabaseAddNodeRequest &request)
{
lock_guard<recursive_mutex> lock(channelMessageMutex);
+ //printf("Add node callback func %s\n", request.requestHash->toString().c_str());
for(Channel *channel : channels)
{
if(*request.nodeHash == *channel->getNodeInfo().getRequestHash())