Commit 17b6463
committed
🧵 Join the receiver _after_ closing the socket
The reciever thread should close the connection before it finishes, and
`@sock.shutdown` should've been enough to trigger that. But this
ensures the socket is closed right away, without needing to wait on
whatever the receiver thread might be in the middle of doing.1 parent 4d13606 commit 17b6463
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1148 | 1148 | | |
1149 | 1149 | | |
1150 | 1150 | | |
1151 | | - | |
1152 | 1151 | | |
1153 | 1152 | | |
1154 | 1153 | | |
| 1154 | + | |
1155 | 1155 | | |
1156 | 1156 | | |
1157 | 1157 | | |
| |||
0 commit comments