Merge pull request #27 from jtanx/master
[matches/MCTX3420.git] / server / sensor.c
index ecbc584..c0c3ab1 100644 (file)
@@ -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;

UCC git Repository :: git.ucc.asn.au