A small memory footprint AMQP implimentation

Dependents:   iothub_client_sample_amqp remote_monitoring simplesample_amqp

Revision:
1:eab586236bfe
Parent:
0:6ae2f7bca550
Child:
5:ae49385aff34
--- a/session.c	Fri Apr 08 12:01:10 2016 -0700
+++ b/session.c	Sun Apr 24 16:40:31 2016 -0700
@@ -330,6 +330,11 @@
 	{
 		session_set_state(session_instance, SESSION_STATE_DISCARDING);
 	}
+	/* Codes_SRS_SESSION_09_001: [If the new connection state is ERROR, the state shall be switched to ERROR.] */
+	else if (new_connection_state == CONNECTION_STATE_ERROR)
+	{
+		session_set_state(session_instance, SESSION_STATE_ERROR);
+	}
 }
 
 static void on_frame_received(void* context, AMQP_VALUE performative, uint32_t payload_size, const unsigned char* payload_bytes)