diff options
| author | Shulhan <ms@kilabit.info> | 2023-12-17 15:11:26 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-12-17 15:13:21 +0700 |
| commit | a9a2b05381892ea1397ff1e489fe6f6b35bd86a4 (patch) | |
| tree | 0059bd8285751c6a67719b403b1d525c2b4fcb83 /lib/ssh | |
| parent | 9eed1a6da4ed47a67a1569a9aa8a02f0f7ead907 (diff) | |
| download | pakakeh.go-a9a2b05381892ea1397ff1e489fe6f6b35bd86a4.tar.xz | |
http/sseclient: fix data race on [Client.Close]
The data race happened when Close set conn to nil but the consume
method still on Read.
The fix is by waiting for 100ms so consume goroutine can check if closeq
is triggered from Close or not.
Diffstat (limited to 'lib/ssh')
0 files changed, 0 insertions, 0 deletions
