diff options
author | 2016-10-21 12:21:38 -0400 | |
---|---|---|
committer | 2017-01-19 13:32:18 +0000 | |
commit | c603d3ed138c0fe8a0944baf499c271aae620bc2 (patch) | |
tree | e2eec73c47192cc5cc63fea3f2ece7581229e7cf /lib/libtle_udp | |
parent | af7f90313b4f97cdfa401615b99beb2aeaa67f96 (diff) |
tldk: fix possibility of tle_event_active() from DOWN to UP
Docstring in tle_event.h for tle_event_active() only describes
possibility of activating event from IDLE state.
Also re-added previously failing test case.
Change-Id: Ib9e19b6b3e64cc2836337b6a86884f312df73858
Signed-off-by: Karol Latecki <karolx.latecki@intel.com>
Signed-off-by: Mohammad Abdul Awal <mohammad.abdul.awal@intel.com>
Diffstat (limited to 'lib/libtle_udp')
-rw-r--r-- | lib/libtle_udp/tle_event.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libtle_udp/tle_event.h b/lib/libtle_udp/tle_event.h index 1a5c436..9357def 100644 --- a/lib/libtle_udp/tle_event.h +++ b/lib/libtle_udp/tle_event.h @@ -168,7 +168,7 @@ tle_event_active(struct tle_event *ev, enum tle_ev_state st) { struct tle_evq *q; - if (st == ev->state) + if (ev->state != TLE_SEV_IDLE) return; q = ev->head; |