Skip to content

Commit be27a9c

Browse files
committed
Do not divide timeout twice
1 parent 19af669 commit be27a9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/remotebackend/httpconnector.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ int HTTPConnector::recv_message(rapidjson::Document &output) {
388388

389389
try {
390390
t0 = time((time_t*)NULL);
391-
while(arl.ready() == false && (labs(time((time_t*)NULL) - t0) <= timeout/1000)) {
391+
while(arl.ready() == false && (labs(time((time_t*)NULL) - t0) <= timeout)) {
392392
rd = d_socket->readWithTimeout(buffer, sizeof(buffer), timeout);
393393
if (rd==0)
394394
throw NetworkError("EOF while reading");

0 commit comments

Comments
 (0)