Commit 304b07fb authored by johan's avatar johan

DTLS connection shall not be closed by server after the handshake

parent 5028a29b
......@@ -534,8 +534,12 @@ static int ms_dtls_srtp_rtp_process_on_receive(struct _RtpTransportModifier *t,
ms_dtls_srtp_check_channels_status(ctx);
}
}
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 msgLength;
......
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