Skip to content

Commit

Permalink
Revert catching error when opening audio resource
Browse files Browse the repository at this point in the history
  • Loading branch information
AntumDeluge committed Jul 6, 2024
1 parent 45b271b commit b09aa4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 0 additions & 3 deletions doc/CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ Changelog
- added parallax backgrounds to Wizards Tower
- added quick menu button to toggle pathfinding via ground

*Java client*
- fixed catching memory errors when sound file is too large


1.47

Expand Down
3 changes: 2 additions & 1 deletion src/games/stendhal/client/sound/manager/SoundManagerNG.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
***************************************************************************/
package games.stendhal.client.sound.manager;

import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
Expand Down Expand Up @@ -268,7 +269,7 @@ public synchronized Sound openSound(AudioResource ar, SoundFileType fileType,
numSamplesPerChunk, enableStreaming);
sound = new Sound();
sound.file.set(file);
} catch (Error | Exception e) {
} catch (IOException e) {
logger.warn("Cannot open sound: " + ar.getName(), e);
return null;
}
Expand Down

0 comments on commit b09aa4e

Please sign in to comment.