mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Disable gxs mail test subservice by default
This commit is contained in:
parent
379fb97062
commit
e2078ba6cf
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user