Skip to content

Commit 53bf244

Browse files
committed
Fix error from previous bugfix
This time hopefully not introducing yet another error ...
1 parent 8ee07f8 commit 53bf244

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

sounddevice.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,9 @@ def __init__(self, kind, samplerate=None, blocksize=None, device=None,
941941
self._latency = info.inputLatency, info.outputLatency
942942

943943
if finished_callback:
944-
if not isinstance(finished_callback, _ffi.CData):
944+
if isinstance(finished_callback, _ffi.CData):
945+
self._finished_callback = finished_callback
946+
else:
945947

946948
def finished_callback_wrapper(_):
947949
return finished_callback()

0 commit comments

Comments
 (0)