Disable gxs mail test subservice by default

This commit is contained in:
Gioacchino Mazzurco 2017-02-26 11:30:04 +01:00
parent 379fb97062
commit e2078ba6cf
2 changed files with 9 additions and 1 deletions

View File

@ -1495,9 +1495,10 @@ int RsServer::StartupRetroShare()
mGxsIdService, pgpAuxUtils); mGxsIdService, pgpAuxUtils);
mGxsMails->setNetworkExchangeService(gxsmails_ns); mGxsMails->setNetworkExchangeService(gxsmails_ns);
pqih->addService(gxsmails_ns, true); pqih->addService(gxsmails_ns, true);
# ifdef TEST_RS_GXS_MAIL
TestGxsMailClientService* tgms = TestGxsMailClientService* tgms =
new TestGxsMailClientService(*mGxsMails, *mGxsIdService); new TestGxsMailClientService(*mGxsMails, *mGxsIdService);
# endif // TEST_RS_GXS_MAIL
# endif // RS_GXS_MAIL # endif // RS_GXS_MAIL
// remove pword from memory // remove pword from memory
@ -1831,7 +1832,9 @@ int RsServer::StartupRetroShare()
# ifdef RS_GXS_MAIL # ifdef RS_GXS_MAIL
startServiceThread(mGxsMails, "gxs mail"); startServiceThread(mGxsMails, "gxs mail");
startServiceThread(gxsmails_ns, "gxs mail ns"); startServiceThread(gxsmails_ns, "gxs mail ns");
# ifdef TEST_RS_GXS_MAIL
tgms->start("Gxs Mail Test Service"); tgms->start("Gxs Mail Test Service");
# endif // TEST_RS_GXS_MAIL
# endif // RS_GXS_MAIL # endif // RS_GXS_MAIL
#endif // RS_ENABLE_GXS #endif // RS_ENABLE_GXS

View File

@ -216,6 +216,8 @@ private:
void notifyClientService(const OutgoingRecord& pr); void notifyClientService(const OutgoingRecord& pr);
}; };
#ifdef TEST_RS_GXS_MAIL
struct TestGxsMailClientService : GxsMailsClient, RsSingleJobThread struct TestGxsMailClientService : GxsMailsClient, RsSingleJobThread
{ {
TestGxsMailClientService( p3GxsMails& gxsMailService, TestGxsMailClientService( p3GxsMails& gxsMailService,
@ -280,3 +282,6 @@ private:
p3GxsMails& mailService; p3GxsMails& mailService;
p3IdService& idService; p3IdService& idService;
}; };
#endif // TEST_RS_GXS_MAIL