Skip to content

Commit

Permalink
Protects connector member variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
damencho committed Apr 12, 2019
1 parent 5378c5a commit 25fbab6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ private void runInConnectThread(
{
dtlsTransport
= dtlsClientProtocol.connect(
tlsClient,
tlsClient,
datagramTransport);
break;
}
Expand Down Expand Up @@ -1149,7 +1149,7 @@ public void sendApplicationData(byte[] buf, int off, int len)
* @param connector the <tt>RTPConnector</tt> which is to use or uses this
* <tt>PacketTransformer</tt>
*/
private void setConnector(AbstractRTPConnector connector)
private synchronized void setConnector(AbstractRTPConnector connector)
{
if (this.connector != connector)
{
Expand Down

0 comments on commit 25fbab6

Please sign in to comment.