Skip to content

Commit

Permalink
[package] update code for aioice 0.7.x
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaine committed Jan 27, 2021
1 parent 4e6aefc commit 7d8a4c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"src/_cffi_src/build_vpx.py:ffibuilder",
]
install_requires = [
"aioice>=0.6.17,<0.7.0",
"aioice>=0.7.0,<0.8.0",
"av>=8.0.0,<9.0.0",
"cffi>=1.0.0",
"crc32c",
Expand Down
6 changes: 4 additions & 2 deletions src/aiortc/rtcicetransport.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,11 @@ async def addRemoteCandidate(self, candidate: Optional[RTCIceCandidate]) -> None
# FIXME: don't use private member!
if not self._connection._remote_candidates_end:
if candidate is None:
self._connection.add_remote_candidate(None)
await self._connection.add_remote_candidate(None)
else:
self._connection.add_remote_candidate(candidate_to_aioice(candidate))
await self._connection.add_remote_candidate(
candidate_to_aioice(candidate)
)

def getRemoteCandidates(self) -> List[RTCIceCandidate]:
"""
Expand Down

0 comments on commit 7d8a4c2

Please sign in to comment.