Skip to content

Commit

Permalink
Merge pull request #100 from Koseng/fixDeinit
Browse files Browse the repository at this point in the history
Try fix freeze on midi disconnect
  • Loading branch information
maartentamboer authored Apr 24, 2022
2 parents 9cf00c3 + 4117610 commit 06bc7c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def run_aircraft_configuration(global_storage: GlobalStorage):
run_aircraft_configuration(storage)
except Exception as ex:
print(type(ex), ex)
finally:
midi.deinit()

if "rtmidi" not in str(type(ex)):
midi.deinit()
# See PyCharm help at https://www.jetbrains.com/help/pycharm/

0 comments on commit 06bc7c9

Please sign in to comment.