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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user