We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ea5b122 + 0653961 commit 4849ba5Copy full SHA for 4849ba5
lib/src/call_sample/signaling.dart
@@ -201,18 +201,16 @@ class Signaling {
201
case 'leave':
202
{
203
var id = data;
204
- _peerConnections.remove(id);
+ var pc = _peerConnections.remove(id);
205
_dataChannels.remove(id);
206
207
if (_localStream != null) {
208
_localStream.dispose();
209
_localStream = null;
210
}
211
212
- var pc = _peerConnections[id];
213
if (pc != null) {
214
pc.close();
215
216
217
this._sessionId = null;
218
if (this.onStateChange != null) {
0 commit comments