[coaps] fix disconnected (#3623)

When DTLS is disconnected, the socket should also be disconnected from
the previous peer.
This commit is contained in:
Yakun Xu
2019-02-26 15:41:59 -08:00
committed by Jonathan Hui
parent 127e3bb84e
commit cc37bd1dfb
6 changed files with 21 additions and 22 deletions
+1 -3
View File
@@ -206,10 +206,8 @@ otError otCoapSecureConnect(otInstance * aInstance,
*
* @param[in] aInstance A pointer to an OpenThread instance.
*
* @retval OT_ERROR_NONE Successfully stopped the DTLS connection.
*
*/
otError otCoapSecureDisconnect(otInstance *aInstance);
void otCoapSecureDisconnect(otInstance *aInstance);
/**
* This method indicates whether or not the DTLS session is connected.