* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: client.c,v 1.285 2005-06-06 17:34:58 adam Exp $
+ * $Id: client.c,v 1.286 2005-06-08 09:11:03 adam Exp $
*/
#include <stdio.h>
}
#endif
-void wait_and_handle_response()
+void wait_and_handle_response(int one_response_only)
{
int reconnect_ok = 1;
int res;
http_response(gdu->u.HTTP_Response);
}
#endif
+ if (one_response_only)
+ break;
if (conn && !cs_more(conn))
break;
}
};
for( i=0 ; i < wait_for ; ++i ) {
- wait_and_handle_response( );
+ wait_and_handle_response(1);
};
return 0;
}
if(apdu_file) fflush(apdu_file);
if (res >= 2 && auto_wait)
- wait_and_handle_response();
+ wait_and_handle_response(0);
if(apdu_file)
fflush(apdu_file);