common RuunableBase with private inheritance

This commit is contained in:
orignal 2020-02-04 11:48:56 -05:00
parent b982be5ff5
commit 969f9aa436
13 changed files with 43 additions and 95 deletions

View file

@ -24,7 +24,7 @@ namespace client
{
I2CPDestination::I2CPDestination (std::shared_ptr<I2CPSession> owner, std::shared_ptr<const i2p::data::IdentityEx> identity, bool isPublic, const std::map<std::string, std::string>& params):
RunnableService ("I2CP"), LeaseSetDestination (GetService (), isPublic, &params),
RunnableService ("I2CP"), LeaseSetDestination (GetIOService (), isPublic, &params),
m_Owner (owner), m_Identity (identity)
{
}
@ -40,7 +40,7 @@ namespace client
if (!IsRunning ())
{
LeaseSetDestination::Start ();
StartService ();
StartIOService ();
}
}
@ -49,7 +49,7 @@ namespace client
if (IsRunning ())
{
LeaseSetDestination::Stop ();
StopService ();
StopIOService ();
}
}