mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-13 04:46:38 +01:00
fix up compiler warnings
This commit is contained in:
parent
c65dc44f20
commit
caace05ba6
2 changed files with 6 additions and 6 deletions
|
@ -531,6 +531,7 @@ namespace client
|
||||||
LogPrint (eLogInfo, "Clients: ", numClientTunnels, " I2P client tunnels created");
|
LogPrint (eLogInfo, "Clients: ", numClientTunnels, " I2P client tunnels created");
|
||||||
LogPrint (eLogInfo, "Clients: ", numServerTunnels, " I2P server tunnels created");
|
LogPrint (eLogInfo, "Clients: ", numServerTunnels, " I2P server tunnels created");
|
||||||
}
|
}
|
||||||
|
|
||||||
void ClientContext::ScheduleCleanupUDP()
|
void ClientContext::ScheduleCleanupUDP()
|
||||||
{
|
{
|
||||||
// schedule cleanup in 1 second
|
// schedule cleanup in 1 second
|
||||||
|
@ -540,11 +541,10 @@ namespace client
|
||||||
|
|
||||||
void ClientContext::CleanupUDP(const boost::system::error_code & ecode)
|
void ClientContext::CleanupUDP(const boost::system::error_code & ecode)
|
||||||
{
|
{
|
||||||
if(!ecode) {
|
if(!ecode)
|
||||||
|
{
|
||||||
std::lock_guard<std::mutex> lock(m_ForwardsMutex);
|
std::lock_guard<std::mutex> lock(m_ForwardsMutex);
|
||||||
for ( auto & s : m_ServerForwards ) {
|
for ( auto & s : m_ServerForwards ) s.second->ExpireStale();
|
||||||
s.second->ExpireStale();
|
|
||||||
}
|
|
||||||
ScheduleCleanupUDP();
|
ScheduleCleanupUDP();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -609,9 +609,9 @@ namespace client
|
||||||
|
|
||||||
I2PUDPServerTunnel::I2PUDPServerTunnel(const std::string & name, std::shared_ptr<i2p::client::ClientDestination> localDestination,
|
I2PUDPServerTunnel::I2PUDPServerTunnel(const std::string & name, std::shared_ptr<i2p::client::ClientDestination> localDestination,
|
||||||
const boost::asio::ip::address& localAddress, boost::asio::ip::udp::endpoint forwardTo, uint16_t port) :
|
const boost::asio::ip::address& localAddress, boost::asio::ip::udp::endpoint forwardTo, uint16_t port) :
|
||||||
m_LocalAddress(localAddress),
|
|
||||||
m_Name(name),
|
m_Name(name),
|
||||||
LocalPort(port),
|
LocalPort(port),
|
||||||
|
m_LocalAddress(localAddress),
|
||||||
m_RemoteEndpoint(forwardTo)
|
m_RemoteEndpoint(forwardTo)
|
||||||
{
|
{
|
||||||
m_LocalDest = localDestination;
|
m_LocalDest = localDestination;
|
||||||
|
@ -639,9 +639,9 @@ namespace client
|
||||||
m_Name(name),
|
m_Name(name),
|
||||||
m_Session(nullptr),
|
m_Session(nullptr),
|
||||||
m_RemoteDest(remoteDest),
|
m_RemoteDest(remoteDest),
|
||||||
m_RemoteIdent(nullptr),
|
|
||||||
m_LocalDest(localDestination),
|
m_LocalDest(localDestination),
|
||||||
m_LocalEndpoint(localEndpoint),
|
m_LocalEndpoint(localEndpoint),
|
||||||
|
m_RemoteIdent(nullptr),
|
||||||
m_ResolveThread(nullptr),
|
m_ResolveThread(nullptr),
|
||||||
LocalPort(localEndpoint.port()),
|
LocalPort(localEndpoint.port()),
|
||||||
RemotePort(remotePort),
|
RemotePort(remotePort),
|
||||||
|
|
Loading…
Add table
Reference in a new issue