The method `onDeviceAttached` and `onDeviceDetached` on the inner class of `UsbMidiDriver` doesn't maintain the set `deviceConnections`.
The method
onDeviceAttachedandonDeviceDetachedon the inner class ofUsbMidiDriverdoesn't maintain the setdeviceConnections.