Commit 0a1b340
committed
adafruit_minimqtt: Fix issue #86 with multiple poll() PINGREQs
If I set timeout to zero there is a problem as the poll() call will be
called multiple times while a ping request is outstanding and this
results in multiple ping requests being made. I see 3-5 at a time with
DEBUG logging on.
This is because self._timestamp is being reset after self.ping()
The solution seems to be pretty straightforward which is to reset
self._timestamp() before sending the ping()
Signed-off-by: Alex J Lennon <ajlennon@dynamicdevices.co.uk>1 parent eccc36f commit 0a1b340
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
776 | 776 | | |
777 | 777 | | |
778 | 778 | | |
| 779 | + | |
779 | 780 | | |
780 | 781 | | |
781 | 782 | | |
782 | 783 | | |
783 | 784 | | |
784 | 785 | | |
785 | | - | |
786 | 786 | | |
787 | 787 | | |
788 | 788 | | |
| |||
0 commit comments