Skip to content

Commit

Permalink
[googletts] Avoid UnsupportedOperationException during dispose (#15305)
Browse files Browse the repository at this point in the history
Fix #15303

It is not allowed to clear an unmodified hash set.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
  • Loading branch information
lolodomo authored and jlaur committed Jul 26, 2023
1 parent 4fe1f76 commit fdb1045
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ protected void activate(Map<String, Object> config) {
@Deactivate
protected void dispose() {
apiImpl.dispose();
audioFormats.clear();
allVoices.clear();
audioFormats = new HashSet<>();
allVoices = new HashSet<>();
}

/**
Expand Down

0 comments on commit fdb1045

Please sign in to comment.