Skip to content

Commit a073a4d

Browse files
committed
fix: stop recording when no listeners
1 parent 593c189 commit a073a4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package/cpp/RNFFilamentRecorder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ std::shared_ptr<Listener> FilamentRecorder::addOnReadyForMoreDataListener(ReadyF
3838

3939
bool FilamentRecorder::onReadyForMoreData() {
4040
// notify all JS listeners
41-
bool shouldContinueNext = true;
41+
bool shouldContinueNext = _listenerManager->getHasListeners();
4242
_listenerManager->forEach([&shouldContinueNext](const ReadyForMoreDataCallback& callback) {
4343
bool result = callback();
4444
if (!result) {

0 commit comments

Comments
 (0)