mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[googletts] Avoid UnsupportedOperationException during dispose (#15305)
Fix #15303 It is not allowed to clear an unmodified hash set. Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
parent
33dd5e7f70
commit
6dccbcb005
@ -136,8 +136,8 @@ public class GoogleTTSService extends AbstractCachedTTSService {
|
||||
@Deactivate
|
||||
protected void dispose() {
|
||||
apiImpl.dispose();
|
||||
audioFormats.clear();
|
||||
allVoices.clear();
|
||||
audioFormats = new HashSet<>();
|
||||
allVoices = new HashSet<>();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user