Fix TLS protocol mismatch assert causing the hub to shutdown.

This commit is contained in:
Jan Vidar Krey committed 2014-10-16 23:08:17 +02:00
1 parent 1da917e5b9
commit 76ff2a1a13
3 files changed
+78 -13

No files matched your search

+10 -1
View File
@@ -190,7 +190,16 @@ static void event_callback(struct net_connection* con, int events, void *arg)
return;
}
ADC_client_on_connected_ssl(client);
if (events == NET_EVENT_ERROR)
{
ADC_client_on_disconnected(client);
client->callback(client, ADC_CLIENT_DISCONNECTED, 0);
return;
}
else
{
ADC_client_on_connected_ssl(client);
}
break;
#endif