mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-07 06:02:41 -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()
|
void RsThreadedTcpSocket::run()
|
||||||
{
|
{
|
||||||
while(connectionState() == CONNECTED)
|
while(!shouldStop() && connectionState() == CONNECTED)
|
||||||
{
|
{
|
||||||
tick();
|
tick();
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(200));
|
std::this_thread::sleep_for(std::chrono::milliseconds(200));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue