diff --git a/addons/ofxNetwork/src/ofxTCPClient.cpp b/addons/ofxNetwork/src/ofxTCPClient.cpp index 9d5ff8244e0..9dccc0e6bb5 100644 --- a/addons/ofxNetwork/src/ofxTCPClient.cpp +++ b/addons/ofxNetwork/src/ofxTCPClient.cpp @@ -283,6 +283,10 @@ static int findDelimiter(char * data, int size, string delimiter){ posInDelimiter++; if(posInDelimiter==delimiter.size()) return i-delimiter.size()+1; }else{ + if(posInDelimiter>0){ + // Stay at the same position to try matching again + i--; + } posInDelimiter=0; } }