Created
April 11, 2020 09:43
-
-
Save Abhi1code/62b0dc59c222712c5c16f009b9944742 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void close(){ | |
if(peerConnection == null){ | |
return; | |
} | |
if(dataChannel == null){ | |
peerConnection.close(); | |
peerConnection = null; | |
} else { | |
dataChannel.close(); | |
peerConnection.close(); | |
peerConnection = null; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment