Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: segfault on arm due to unaligned atomics
This fixes the following segfault: runtime/internal/atomic.goStore64(0x2487864, 0x5fc9a110, 0x0) /home/konrad/opt/go/src/runtime/internal/atomic/atomic_arm.go:144 +0x1c github.com/DrmagicE/gmqtt.(*client).setDisconnectedAt(0x2487800, 0x184d7eef, 0xbfea8 The atomics must be 64bit aligned on 32bit architectures because otherwise an attempt to store results in segfault. See: https://golang.org/pkg/sync/atomic/#pkg-note-BUG
- Loading branch information