Fix force-close if the stream is aborted before RTP is connected. Fix address already in use exception on RTCP socket.

This commit is contained in:
Cameron Gutman
2013-11-10 05:49:00 -05:00
parent 54e365a304
commit ac1380bd4c
2 changed files with 11 additions and 8 deletions
@@ -53,7 +53,9 @@ public class NvAudioStream {
}
// Close the socket to interrupt the receive thread
rtp.close();
if (rtp != null) {
rtp.close();
}
// Wait for threads to terminate
for (Thread t : threads) {