Fix TLS protocol mismatch assert causing the hub to shutdown.

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

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