Fixed mget_execute possibly failing into some non ending recursive call
[awesomized/libmemcached] / libmemcached / memcached_response.c
index fe13ddd53f8045efabdfb51e8fd4fbf583f21555..01db41690978ba501b3254809f245d6a0ce0fc80 100644 (file)
@@ -44,7 +44,7 @@ memcached_return memcached_response(memcached_server_st *ptr,
                                     memcached_result_st *result)
 {
   /* We may have old commands in the buffer not set, first purge */
-  if (ptr->root->flags & MEM_NO_BLOCK)
+  if ((ptr->root->flags & MEM_NO_BLOCK) && (!ptr->root->processing_input))
     (void)memcached_io_write(ptr, NULL, 0, 1);
 
   /*