Skip to content

Commit eebc55c

Browse files
author
Ivelin Ivanov
authored
fix: accomodate aiortc 1.0 breaking change
aiortc 1.0 added a braking change addIceCandidate is now an async coroutine which is closer to the webrtc spec
1 parent 4cafb54 commit eebc55c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/peerjs/negotiator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ async def handleCandidate(self, ice=None):
322322
rtc_ice_candidate.sdpMLineIndex = sdpMLineIndex
323323
log.debug('RTCIceCandidate: %r', rtc_ice_candidate)
324324
log.debug('peerConnection: %r', peerConnection)
325-
peerConnection.addIceCandidate(rtc_ice_candidate)
325+
await peerConnection.addIceCandidate(rtc_ice_candidate)
326326
log.debug('Added ICE candidate for peer %s',
327327
self.connection.peer)
328328
except Exception as err:

0 commit comments

Comments
 (0)