serial: fix cleanup of flash function (rh #591728)
The flash function could be called when the port was closed, and since the flash function would only be canceled when the port was open, it could trigger after the port object was destroyed.
This commit is contained in:
@@ -44,6 +44,7 @@ mm_serial_error_get_type (void)
|
||||
ENUM_ENTRY (MM_SERIAL_ERROR_RESPONSE_TIMEOUT, "SerialResponseTimeout"),
|
||||
ENUM_ENTRY (MM_SERIAL_ERROR_OPEN_FAILED_NO_DEVICE, "SerialOpenFailedNoDevice"),
|
||||
ENUM_ENTRY (MM_SERIAL_ERROR_FLASH_FAILED, "SerialFlashFailed"),
|
||||
ENUM_ENTRY (MM_SERIAL_ERROR_NOT_OPEN, "SerialNotOpen"),
|
||||
{ 0, 0, 0 }
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user