update comm_state when port_close is called

pull/345/head
Michael Black W9MDB 2020-06-21 16:15:00 -05:00
rodzic d95bcccc94
commit 379caace7c
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -604,6 +604,7 @@ int HAMLIB_API rig_open(RIG *rig)
if (rs->comm_state)
{
port_close(&rs->rigport, rs->rigport.type.rig);
rs->comm_state = 0;
return -RIG_EINVAL;
}