aboutsummaryrefslogtreecommitdiffstats
path: root/examples/stats-client/stats_api.go
diff options
context:
space:
mode:
authorAlexander Demidenko <hurd@yandex-team.ru>2021-03-19 12:11:21 +0700
committerAlexander Demidenko <hurd@yandex-team.ru>2021-03-19 12:24:59 +0700
commit8ff6fc436ce5a5be694e7d4cc9e56ded10184d80 (patch)
tree9e0b6b8ead5d6a16c4e552e9185e8ac2423d4c88 /examples/stats-client/stats_api.go
parent4e16c7100cc7f8dddca051ff393460d7a1a77c98 (diff)
Fix panic during disconnection
Sometimes there are situations when the callback is called during the processing of the disconnect. To avoid problems with races (for example, when using race-detector), use atomic pointers. Signed-off-by: Alexander Demidenko <hurd@yandex-team.ru> Change-Id: Ic825872ac620d68a191bc88889a096b15ea57464
Diffstat (limited to 'examples/stats-client/stats_api.go')
0 files changed, 0 insertions, 0 deletions