rigol-ds: Deal with dev_close() getting called multiple times.

This commit is contained in:
Bert Vermeulen 2014-01-27 21:19:41 +01:00
parent ca9b9f4834
commit 464d49360a
1 changed files with 3 additions and 0 deletions

View File

@ -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;