Skip to content

Commit 180714e

Browse files
authored
Merge pull request #14 from livekit/fix-typos
Fixed a few typos
2 parents 82b4743 + b6e706e commit 180714e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

livekit/room.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def on_disconnect_callback(cb: proto_room.DisconnectCallback):
102102
'disconnect', on_disconnect_callback)
103103

104104
await future
105-
if not self._close_future.cancelled:
105+
if not self._close_future.cancelled():
106106
self._close_future.set_result(None)
107107

108108
async def run(self):

livekit/track.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class LocalAudioTrack(Track):
4040
def __init__(self, ffi_handle: FfiHandle, info: proto_track.TrackInfo):
4141
super().__init__(ffi_handle, info)
4242

43+
@staticmethod
4344
def create_audio_track(name: str, source: 'AudioSource') -> 'LocalAudioTrack':
4445
req = proto_ffi.FfiRequest()
4546
req.create_audio_track.name = name
@@ -56,6 +57,7 @@ class LocalVideoTrack(Track):
5657
def __init__(self, ffi_handle: FfiHandle, info: proto_track.TrackInfo):
5758
super().__init__(ffi_handle, info)
5859

60+
@staticmethod
5961
def create_video_track(name: str, source: 'VideoSource') -> 'LocalVideoTrack':
6062
req = proto_ffi.FfiRequest()
6163
req.create_video_track.name = name

0 commit comments

Comments
 (0)