Skip to content

Commit 7eab95d

Browse files
authored
rename close to disconnect (#9)
1 parent 1d651db commit 7eab95d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

examples/basic_room/room.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def on_data_received(data: bytes, kind: livekit.DataPacketKind, participant: liv
7373
logging.error("failed to connect to the room: %s", e)
7474
except asyncio.CancelledError:
7575
logging.info("closing the room")
76-
await room.close()
76+
await room.disconnect()
7777

7878

7979
if __name__ == "__main__":

examples/publish_hue/room.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ async def main():
7070
logging.info("closing the room")
7171
source_task.cancel()
7272
await source_task
73-
await room.close()
73+
await room.disconnect()
7474

7575

7676
if __name__ == "__main__":

examples/publish_wave/room.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ async def main():
6767
logging.info("closing the room")
6868
source_task.cancel()
6969
await source_task
70-
await room.close()
70+
await room.disconnect()
7171

7272

7373
if __name__ == "__main__":

livekit/room.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def on_connect_callback(cb: proto_room.ConnectCallback):
8080
for participant_info in resp.room.participants:
8181
self._create_remote_participant(participant_info)
8282

83-
async def close(self):
83+
async def disconnect(self):
8484
if not self.isconnected():
8585
return
8686

0 commit comments

Comments
 (0)