8000 Fix: After the window is closed, the old source still exists (#1279) · binvb/flutter-webrtc@c6e4329 · GitHub
[go: up one dir, main page]

Skip to content

Commit c6e4329

Browse files
authored
Fix: After the window is closed, the old source still exists (flutter-webrtc#1279)
1 parent 4e09e0a commit c6e4329

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/src/native/desktop_capturer_impl.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ class DesktopCapturerNative extends DesktopCapturer {
146146
@override
147147
Future<List<DesktopCapturerSource>> getSources(
148148
{required List<SourceType> types, ThumbnailSize? thumbnailSize}) async {
149+
_sources.clear();
149150
final response = await WebRTC.invokeMethod(
417A 150151
'getDesktopSources',
151152
<String, dynamic>{

0 commit comments

Comments
 (0)
0