Skip to content

Commit

Permalink
remove port close on every midi command sent
Browse files Browse the repository at this point in the history
now it will only close the port when the program quits
  • Loading branch information
josephdadams committed Aug 18, 2023
1 parent f1ca364 commit 434b75c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion midi.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ function sendMIDI(midiObj, callback) {
}

if (msg !== null) {
this.send(msg).close();
this.send(msg);

for (let i = 0; i < msg.length; i++) {
rawmessage += msg[i];
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "midi-relay",
"productName": "midi-relay",
"version": "3.1.0",
"version": "3.1.1",
"description": "Listens for HTTP requests with JSON payload and relays MIDI/MSC commands on local ports.",
"license": "MIT",
"repository": "josephdadams/midi-relay",
Expand Down

0 comments on commit 434b75c

Please sign in to comment.