clear sessionHistoryMap in clearSessions(), fixes #171

This commit is contained in:
Taner Sener 2021-10-07 01:17:15 +01:00
parent c9657a3911
commit fb0a2105a0
3 changed files with 4 additions and 1 deletions

3
.github/FUNDING.yml vendored
View File

@ -1,2 +1,3 @@
patreon: tanersener 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' ]

View File

@ -1027,6 +1027,7 @@ public class FFmpegKitConfig {
public static void clearSessions() { public static void clearSessions() {
synchronized (sessionHistoryLock) { synchronized (sessionHistoryLock) {
sessionHistoryList.clear(); sessionHistoryList.clear();
sessionHistoryMap.clear();
} }
} }

View File

@ -1076,6 +1076,7 @@ int executeFFprobe(long sessionId, NSArray* arguments) {
[sessionHistoryLock lock]; [sessionHistoryLock lock];
[sessionHistoryList removeAllObjects]; [sessionHistoryList removeAllObjects];
[sessionHistoryMap removeAllObjects];
[sessionHistoryLock unlock]; [sessionHistoryLock unlock];
} }