mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 06:55:52 +08:00
Fix modem re-connect crash
This commit is contained in:
@@ -230,11 +230,8 @@ bool CModem::open()
|
||||
::LogMessage("Opening the MMDVM");
|
||||
|
||||
bool ret = m_serial->open();
|
||||
if (!ret) {
|
||||
delete m_serial;
|
||||
m_serial = NULL;
|
||||
if (!ret)
|
||||
return false;
|
||||
}
|
||||
|
||||
ret = readVersion();
|
||||
if (!ret) {
|
||||
@@ -756,8 +753,6 @@ void CModem::close()
|
||||
::LogMessage("Closing the MMDVM");
|
||||
|
||||
m_serial->close();
|
||||
delete m_serial;
|
||||
m_serial = NULL;
|
||||
}
|
||||
|
||||
unsigned int CModem::readDStarData(unsigned char* data)
|
||||
|
||||
Reference in New Issue
Block a user