From 434b75cf47c67fc58990b9a46631fec8748969b1 Mon Sep 17 00:00:00 2001 From: Joseph Adams Date: Fri, 18 Aug 2023 09:04:39 -0400 Subject: [PATCH] remove port close on every midi command sent now it will only close the port when the program quits --- midi.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/midi.js b/midi.js index 0aae052..0b2550e 100644 --- a/midi.js +++ b/midi.js @@ -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]; diff --git a/package.json b/package.json index 601d929..b511903 100644 --- a/package.json +++ b/package.json @@ -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",