Remove incorrect assertion.

git-svn-id: https://protobuf-c.googlecode.com/svn/trunk@281 00440858-1255-0410-a3e6-75ea37f81c3a
This commit is contained in:
lahiker42 2011-03-15 18:00:15 +00:00
parent ddabb041b3
commit 88620efbba

View File

@ -125,6 +125,7 @@ handle_autoreconnect_timeout (ProtobufCDispatch *dispatch,
void *func_data)
{
ProtobufC_RPC_Client *client = func_data;
fprintf(stderr, "handle_autoreconnect_timeout: %s\n", client->info.failed_waiting.error_message);
protobuf_c_assert (client->state == PROTOBUF_C_CLIENT_STATE_FAILED_WAITING);
client->allocator->free (client->allocator,
client->info.failed_waiting.error_message);
@ -281,6 +282,7 @@ begin_connecting (ProtobufC_RPC_Client *client,
struct sockaddr *address,
size_t addr_len)
{
fprintf(stderr, "begin_conencting\n");
protobuf_c_assert (client->state == PROTOBUF_C_CLIENT_STATE_NAME_LOOKUP);
client->state = PROTOBUF_C_CLIENT_STATE_CONNECTING;
@ -476,7 +478,7 @@ enqueue_request (ProtobufC_RPC_Client *client,
protobuf_c_assert (method_index < desc->n_methods);
/* Allocate request_id */
protobuf_c_assert (client->state == PROTOBUF_C_CLIENT_STATE_CONNECTED);
//protobuf_c_assert (client->state == PROTOBUF_C_CLIENT_STATE_CONNECTED);
if (client->info.connected.first_free_request_id == 0)
grow_closure_array (client);
request_id = client->info.connected.first_free_request_id;