Commit 88620efb authored by lahiker42's avatar lahiker42

Remove incorrect assertion.



git-svn-id: https://protobuf-c.googlecode.com/svn/trunk@281 00440858-1255-0410-a3e6-75ea37f81c3a
parent ddabb041
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment