ThrottledDevice: speed up quick reactivation
authorHelmut Grohne <helmut@subdivi.de>
Fri, 19 Jul 2013 12:56:05 +0000 (14:56 +0200)
committerHelmut Grohne <helmut@subdivi.de>
Fri, 19 Jul 2013 12:56:05 +0000 (14:56 +0200)
commit6ced7036540d03b092d27550ad5952af5336e7dd
treea83d0ae98ef1aa5990a3f16cc1b649c5054d072c
parent6a2f51a1266776f434a06b375026a9c2b63b707a
ThrottledDevice: speed up quick reactivation

When a deactivation is delayed by offdelay and reactivated before the
timer expires, the device is not powered down at all in between. So we
should not incur the ondelay, but immediately transition to ST_ACTIVE
after cancelling the pending deactivation.
onoff/common.py