Skip to content

Commit

Permalink
fix: Adds a null check.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrozev committed Sep 4, 2018
1 parent 96adc30 commit aef3b62
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,14 @@ public void close()

synchronized (socketsSyncRoot)
{
rtpSocket.close();
rtcpSocket.close();
if (rtpSocket != null)
{
rtpSocket.close();
}
if (rtcpSocket != null)
{
rtcpSocket.close();
}
}
}

Expand Down

0 comments on commit aef3b62

Please sign in to comment.