X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Fsensor.c;h=c0c3ab1773664f2c5ed351660dbbe9fca4f4ae89;hb=1a5cb99a6e794b4d51815aad67a73ae3f3c5b659;hp=ecbc584fc9060771d815edef411cf31f595854e5;hpb=84282dc8bd6b84d23284742741fab5664ffb25a6;p=matches%2FMCTX3420.git diff --git a/server/sensor.c b/server/sensor.c index ecbc584..c0c3ab1 100644 --- a/server/sensor.c +++ b/server/sensor.c @@ -296,7 +296,7 @@ void Sensor_Handler(FCGIContext *context, char * params) } } - while (amount_read > 0); + while (amount_read == SENSOR_QUERYBUFSIZ); pthread_mutex_unlock(&(sensor->mutex)); // end critical section break;