mirror of
https://github.com/GOSTSec/gostcoin
synced 2025-02-05 19:34:16 +00:00
warnings workaround
This commit is contained in:
parent
bde0ecc8a9
commit
855c1bbc68
@ -136,7 +136,9 @@ void Shutdown()
|
|||||||
boost::filesystem::remove(GetPidFile());
|
boost::filesystem::remove(GetPidFile());
|
||||||
UnregisterWallet(pwalletMain);
|
UnregisterWallet(pwalletMain);
|
||||||
if (pwalletMain)
|
if (pwalletMain)
|
||||||
|
{
|
||||||
delete pwalletMain;
|
delete pwalletMain;
|
||||||
|
}
|
||||||
|
|
||||||
I2PSession::Instance ().Stop ();
|
I2PSession::Instance ().Stop ();
|
||||||
|
|
||||||
@ -826,7 +828,7 @@ bool AppInit2(boost::thread_group& threadGroup)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
CService addrProxy;
|
CService addrProxy;
|
||||||
bool fProxy = false;
|
//bool fProxy = false; // is usable?
|
||||||
if (mapArgs.count("-proxy")) {
|
if (mapArgs.count("-proxy")) {
|
||||||
addrProxy = CService(mapArgs["-proxy"], 9050);
|
addrProxy = CService(mapArgs["-proxy"], 9050);
|
||||||
if (!addrProxy.IsValid())
|
if (!addrProxy.IsValid())
|
||||||
@ -841,7 +843,7 @@ bool AppInit2(boost::thread_group& threadGroup)
|
|||||||
#endif
|
#endif
|
||||||
SetNameProxy(addrProxy, nSocksVersion);
|
SetNameProxy(addrProxy, nSocksVersion);
|
||||||
}
|
}
|
||||||
fProxy = true;
|
//fProxy = true; // is usable?
|
||||||
}
|
}
|
||||||
|
|
||||||
// see Step 2: parameter interactions for more information about these
|
// see Step 2: parameter interactions for more information about these
|
||||||
|
@ -990,7 +990,9 @@ void ThreadSocketHandler()
|
|||||||
// Accept new connections
|
// Accept new connections
|
||||||
//
|
//
|
||||||
if (!IsI2POnly())
|
if (!IsI2POnly())
|
||||||
|
{
|
||||||
BOOST_FOREACH(SOCKET hListenSocket, vhListenSocket)
|
BOOST_FOREACH(SOCKET hListenSocket, vhListenSocket)
|
||||||
|
{
|
||||||
if (hListenSocket != INVALID_SOCKET && FD_ISSET(hListenSocket, &fdsetRecv))
|
if (hListenSocket != INVALID_SOCKET && FD_ISSET(hListenSocket, &fdsetRecv))
|
||||||
{
|
{
|
||||||
#ifdef USE_IPV6
|
#ifdef USE_IPV6
|
||||||
@ -1044,6 +1046,8 @@ void ThreadSocketHandler()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
//
|
//
|
||||||
// Accept new I2P connections
|
// Accept new I2P connections
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user