Skip to content

Commit

Permalink
とりあえず通るはず
Browse files Browse the repository at this point in the history
  • Loading branch information
tnoho committed Jan 2, 2025
1 parent b5d4aa0 commit 8f03a1a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/sora_sdk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,18 @@ def on_data(self, *args, **kwargs):


class SoraVideoSource():
_instances = []

def __init__(self, sora, source):
SoraVideoSource._instances.append(self)
self._sora = sora
self.source = source

def __del__(self):
print("__del__ SoraVideoSource 1")
self.source = None
self._sora = None
SoraVideoSource._instances.remove(self)
print("__del__ SoraVideoSource 2")

def on_captured(self, *args, **kwargs):
Expand Down Expand Up @@ -186,8 +190,9 @@ def __init__(self, *args, **kwargs):
Sora._instances.append(self)

def __del__(self):
print("__del__ Sora 1")
Sora._instances.remove(self)
print("__del__ Sora")
print("__del__ Sora 2")

def create_connection(
self,
Expand Down

0 comments on commit 8f03a1a

Please sign in to comment.