addressed codex review cleanup

This commit is contained in:
just-stuff-tm
2026-03-05 02:50:38 -05:00
parent f584c4fba0
commit fb58a3262c
2 changed files with 3 additions and 4 deletions
@@ -344,10 +344,6 @@ class UsbSerialService {
// with a dangling NativeCallable pointer.
if (_useDesktopFlSerial) {
final serial = _serial;
_serial = null;
_status = UsbSerialStatus.disconnected;
_connectedPortKey = null;
_connectedPortLabel = null;
try {
if (serial?.isOpen() == FlOpenStatus.open) {
serial?.closePort(); // synchronous C call — kills the SerialThread