From 18943dc6266ded7299f810a36f6f6418abefe3a4 Mon Sep 17 00:00:00 2001 From: Yuval Tal Date: Sun, 29 May 2011 01:42:54 +0300 Subject: [PATCH] no need to parse, if we didn't get anything --- shairport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shairport.c b/shairport.c index 2ca78475..bb21c617 100644 --- a/shairport.c +++ b/shairport.c @@ -353,7 +353,7 @@ void handleClient(int pSock, char *pPassword, char *pHWADDR) while(1 == tMoreDataNeeded) { tError = readDataFromClient(pSock, &(tConn.recv)); - if(!tError) + if(!tError && strlen(tConn.recv.data) > 0) { slog(LOG_DEBUG_VV, "Finished Reading some data from client\n"); // parse client request