Skip to content

Commit

Permalink
clear sessionHistoryMap in clearSessions(), fixes #171
Browse files Browse the repository at this point in the history
  • Loading branch information
tanersener committed Oct 7, 2021
1 parent c9657a3 commit fb0a210
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
patreon: tanersener
custom: [ 'https://www.patreon.com/tanersener','https://opencollective.com/ffmpeg-kit','https://buymeacoff.ee/tanersener','https://paypal.me/teodosiyminchev' ]
open_collective: ffmpeg-kit
custom: [ 'https://buymeacoff.ee/tanersener' ]
Original file line number Diff line number Diff line change
Expand Up @@ -1027,6 +1027,7 @@ public static List<Session> getSessions() {
public static void clearSessions() {
synchronized (sessionHistoryLock) {
sessionHistoryList.clear();
sessionHistoryMap.clear();
}
}

Expand Down
1 change: 1 addition & 0 deletions apple/src/FFmpegKitConfig.m
Original file line number Diff line number Diff line change
Expand Up @@ -1076,6 +1076,7 @@ + (void)clearSessions {
[sessionHistoryLock lock];

[sessionHistoryList removeAllObjects];
[sessionHistoryMap removeAllObjects];

[sessionHistoryLock unlock];
}
Expand Down

0 comments on commit fb0a210

Please sign in to comment.