project_files/frontlib/net/netbase.c
changeset 7275 15f722e0b96f
parent 7234 613998625a3c
child 7314 6171f0bad318
--- a/project_files/frontlib/net/netbase.c	Mon Jun 25 15:21:18 2012 +0200
+++ b/project_files/frontlib/net/netbase.c	Wed Jun 27 18:02:45 2012 +0200
@@ -105,8 +105,7 @@
 		return 0;
 	} else {
 		int size = flib_socket_nbrecv(net->sock, buffer, sizeof(buffer));
-		if(size>=0) {
-			flib_vector_append(net->readBuffer, buffer, size);
+		if(size>=0 && !flib_vector_append(net->readBuffer, buffer, size)) {
 			return size;
 		} else {
 			flib_socket_close(net->sock);