Commit d97cc69
committed
fixed deadlock that was caused by joining the receiver thread in the synchronized block of the lifecycle. The bug caused Paho to wait forever when there was a socket exception after the close was initiated (e.g. when the broker closed the connection prematurely or when something bad happenes on the network)
Signed-off-by: Dominik Obermaier <dominik.obermaier@gmail.com>1 parent 31bcfcc commit d97cc69
1 file changed
Lines changed: 12 additions & 8 deletions
File tree
- org.eclipse.paho.client.mqttv3/src/main/java/org/eclipse/paho/client/mqttv3/internal/websocket
Lines changed: 12 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| 75 | + | |
74 | 76 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
83 | 87 | | |
84 | 88 | | |
85 | 89 | | |
| |||
0 commit comments