Browse Source

warnings workaround

pull/26/head
R4SAS 7 years ago
parent
commit
855c1bbc68
  1. 6
      src/init.cpp
  2. 4
      src/net.cpp

6
src/init.cpp

@ -136,7 +136,9 @@ void Shutdown() @@ -136,7 +136,9 @@ void Shutdown()
boost::filesystem::remove(GetPidFile());
UnregisterWallet(pwalletMain);
if (pwalletMain)
{
delete pwalletMain;
}
I2PSession::Instance ().Stop ();
@ -826,7 +828,7 @@ bool AppInit2(boost::thread_group& threadGroup) @@ -826,7 +828,7 @@ bool AppInit2(boost::thread_group& threadGroup)
#endif
CService addrProxy;
bool fProxy = false;
//bool fProxy = false; // is usable?
if (mapArgs.count("-proxy")) {
addrProxy = CService(mapArgs["-proxy"], 9050);
if (!addrProxy.IsValid())
@ -841,7 +843,7 @@ bool AppInit2(boost::thread_group& threadGroup) @@ -841,7 +843,7 @@ bool AppInit2(boost::thread_group& threadGroup)
#endif
SetNameProxy(addrProxy, nSocksVersion);
}
fProxy = true;
//fProxy = true; // is usable?
}
// see Step 2: parameter interactions for more information about these

4
src/net.cpp

@ -990,7 +990,9 @@ void ThreadSocketHandler() @@ -990,7 +990,9 @@ void ThreadSocketHandler()
// Accept new connections
//
if (!IsI2POnly())
{
BOOST_FOREACH(SOCKET hListenSocket, vhListenSocket)
{
if (hListenSocket != INVALID_SOCKET && FD_ISSET(hListenSocket, &fdsetRecv))
{
#ifdef USE_IPV6
@ -1044,6 +1046,8 @@ void ThreadSocketHandler() @@ -1044,6 +1046,8 @@ void ThreadSocketHandler()
}
}
}
}
}
//
// Accept new I2P connections
//

Loading…
Cancel
Save