Skip to content

Commit

Permalink
bugfix: fixed a crash when closing connection
Browse files Browse the repository at this point in the history
  • Loading branch information
superus8r committed Apr 6, 2024
1 parent 0ebc0d6 commit b2fd55c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ internal class ArduinoHelper
prepareSerialPort(serialPort)
else {
_liveInfoOutput.value = context.getString(R.string.helper_error_serial_port_is_null)

Check warning on line 161 in app/src/main/java/org/kabiri/android/usbterminal/arduino/ArduinoHelper.kt

View check run for this annotation

Codecov / codecov/patch

app/src/main/java/org/kabiri/android/usbterminal/arduino/ArduinoHelper.kt#L161

Added line #L161 was not covered by tests
connection.close()
if (::connection.isInitialized) connection.close()
}
}

Expand Down

0 comments on commit b2fd55c

Please sign in to comment.