Fix TLS protocol mismatch assert causing the hub to shutdown.
This commit is contained in:
1 parent
1da917e5b9
commit
76ff2a1a13
3 files changed
+78
-13
No files matched your search
+10
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user