Fix disconnect for MQTT and add note about code signing.

This commit is contained in:
James Coleman 2025-07-04 15:08:29 -05:00
parent 9b9160405e
commit 04875a12fb
2 changed files with 7 additions and 1 deletions

View File

@ -70,7 +70,11 @@ On MacOS, you can setup a Launch Agent in `~/Library/LaunchAgents/com.mrgeckosme
<false/>
</dict>
</plist>
```
For local network connection, you need to code sign your build.
```bash
codesign -s - --force --deep /path/to/bin/midi-request-trigger
```
Start with:

View File

@ -613,5 +613,7 @@ func (r *MidiRouter) Disconnect() {
if r.ListenerStop != nil {
r.ListenerStop()
}
r.MqttClient.Disconnect(0)
if r.MqttClient != nil {
r.MqttClient.Disconnect(0)
}
}