mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-11 07:29:38 -05:00
Added check of shouldStop in RsThreadedTcpSocket::run
This commit is contained in:
parent
02afc9062f
commit
72e52b998c
@ -84,7 +84,7 @@ RsThreadedTcpSocket::RsThreadedTcpSocket() : RsTcpSocket()
|
||||
}
|
||||
void RsThreadedTcpSocket::run()
|
||||
{
|
||||
while(connectionState() == CONNECTED)
|
||||
while(!shouldStop() && connectionState() == CONNECTED)
|
||||
{
|
||||
tick();
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(200));
|
||||
|
Loading…
Reference in New Issue
Block a user