mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-14 23:36:27 -04:00
fixed a bug closing the synthesizer
This commit is contained in:
parent
3016cd7287
commit
2dfc84ffe1
@ -70,9 +70,9 @@ public final class MIDIHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void close() {
|
private void close() {
|
||||||
if (!isOpen) {
|
if (isOpen) {
|
||||||
synthesizer.close();
|
synthesizer.close();
|
||||||
synthesizer = null;
|
isOpen = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user