Fix CPU usage problems in HTTP connector.

This commit is contained in:
Thulinma 2012-08-25 13:14:08 +02:00
parent fb2d022800
commit e6179904c7

View file

@ -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();