Commit 5d8296a
committed
CP: Fix bug in trasmit time accounting comparison
Commit 810d33d ("Better calculate the transmit timeout for
packets") introduced a way to account for the trasmit time in when
waiting for responsed by pre-computing an absolute time when the
response is expected but then compared it with a duration returned by
osdp_millis_since().
This patch fixes the issue by adjusting the comparison to the current
tick value.
Related-to: #292
Fixes: 810d33d
Signed-off-by: Siddharth Chandrasekaran <sidcha.dev@gmail.com>1 parent 7764466 commit 5d8296a
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
870 | 870 | | |
871 | 871 | | |
872 | 872 | | |
873 | | - | |
| 873 | + | |
874 | 874 | | |
875 | 875 | | |
876 | 876 | | |
| |||
0 commit comments