Only trigger bundle add hooks within the daemon thread / process

This commit is contained in:
Jeremy Lakeman 2016-03-30 17:18:34 +10:30
parent c04d015bc6
commit 2efcfa24d5

View File

@ -1361,7 +1361,8 @@ int rhizome_store_manifest(rhizome_manifest *m)
alloca_tohex_rhizome_bid_t(m->cryptoSignPublic),
m->version
);
CALL_TRIGGER(bundle_add, m);
if (serverMode)
CALL_TRIGGER(bundle_add, m);
return 0;
}
rollback: