rigol-ds: Deal with dev_close() getting called multiple times.
This commit is contained in:
parent
ca9b9f4834
commit
464d49360a
|
@ -482,6 +482,9 @@ static int dev_close(struct sr_dev_inst *sdi)
|
|||
struct sr_scpi_dev_inst *scpi;
|
||||
struct dev_context *devc;
|
||||
|
||||
if (sdi->status != SR_ST_INACTIVE)
|
||||
return SR_OK;
|
||||
|
||||
scpi = sdi->conn;
|
||||
devc = sdi->priv;
|
||||
|
||||
|
|
Loading…
Reference in New Issue