diff options
author | Benjamin Berg <bberg@redhat.com> | 2020-05-22 17:29:00 +0200 |
---|---|---|
committer | Benjamin Berg <benjamin@sipsolutions.net> | 2020-06-05 15:13:18 +0000 |
commit | 40ed3536664a142b6d185b15ab3e6576a48963ed (patch) | |
tree | f8605e6c00e0a7b1a1d5c0e616128eb4f1cad828 | |
parent | 32bdd8d5c4928a720eaaaf63ec23282fecfbb2d8 (diff) |
elan: Only queue state changes once
The driver would warn about the fact that a state change is queued, but
still queue it a second time. This would result in deactivation to run
twice.
See: #216
-rw-r--r-- | libfprint/drivers/elan.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libfprint/drivers/elan.c b/libfprint/drivers/elan.c index a498539..f88ec3e 100644 --- a/libfprint/drivers/elan.c +++ b/libfprint/drivers/elan.c @@ -1015,7 +1015,10 @@ dev_change_state (FpImageDevice *dev, FpiImageDeviceState state) state = FPI_IMAGE_DEVICE_STATE_INACTIVE; if (self->dev_state_next == state) - fp_dbg ("change to state %d already queued", state); + { + fp_dbg ("change to state %d already queued", state); + return; + } switch (state) { |