Resolved a bug by which the SDP was exchanged more than once