mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-09 09:35:32 -04:00
Added check of shouldStop in RsThreadedTcpSocket::run
This commit is contained in:
parent
02afc9062f
commit
72e52b998c
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue