session_file: Start out with SR_ST_INACTIVE like all drivers.
This commit is contained in:
parent
f1ba6b4b2c
commit
e374786753
|
@ -175,7 +175,7 @@ SR_PRIV struct sr_dev_inst *sr_session_prepare_sdi(const char *filename, struct
|
||||||
|
|
||||||
sdi = g_malloc0(sizeof(struct sr_dev_inst));
|
sdi = g_malloc0(sizeof(struct sr_dev_inst));
|
||||||
sdi->driver = &session_driver;
|
sdi->driver = &session_driver;
|
||||||
sdi->status = SR_ST_ACTIVE;
|
sdi->status = SR_ST_INACTIVE;
|
||||||
if (!session_driver_initialized) {
|
if (!session_driver_initialized) {
|
||||||
/* first device, init the driver */
|
/* first device, init the driver */
|
||||||
session_driver_initialized = 1;
|
session_driver_initialized = 1;
|
||||||
|
|
Loading…
Reference in New Issue