[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
|
@Deactivate
|
||||||
protected void dispose() {
|
protected void dispose() {
|
||||||
apiImpl.dispose();
|
apiImpl.dispose();
|
||||||
audioFormats.clear();
|
audioFormats = new HashSet<>();
|
||||||
allVoices.clear();
|
allVoices = new HashSet<>();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue