Fix CPU usage problems in HTTP connector.
This commit is contained in:
parent
fb2d022800
commit
e6179904c7
1 changed files with 2 additions and 0 deletions
|
@ -334,6 +334,8 @@ int main(int argc, char ** argv){
|
||||||
delete T;
|
delete T;
|
||||||
}
|
}
|
||||||
Connector_HTTP::thread_mutex.unlock();
|
Connector_HTTP::thread_mutex.unlock();
|
||||||
|
}else{
|
||||||
|
usleep(100000);//sleep 100ms
|
||||||
}
|
}
|
||||||
}//while connected and not requested to stop
|
}//while connected and not requested to stop
|
||||||
server_socket.close();
|
server_socket.close();
|
||||||
|
|
Loading…
Add table
Reference in a new issue