Commit 304b07fb authored by johan's avatar johan

DTLS connection shall not be closed by server after the handshake

parent 5028a29b
...@@ -534,7 +534,11 @@ static int ms_dtls_srtp_rtp_process_on_receive(struct _RtpTransportModifier *t, ...@@ -534,7 +534,11 @@ static int ms_dtls_srtp_rtp_process_on_receive(struct _RtpTransportModifier *t,
ms_dtls_srtp_check_channels_status(ctx); ms_dtls_srtp_check_channels_status(ctx);
} }
} }
ret = ssl_close_notify( &(ctx->rtp_dtls_context->ssl) );
if (ctx->role != MSDtlsSrtpRoleIsServer) { /* close the connection only if we are client, if we are server, the client may ask again for last packets */
ret = ssl_close_notify( &(ctx->rtp_dtls_context->ssl) );
}
} }
return 0; return 0;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment