shimmeringbee / zstack

Implementation of a ZNP and support code designed to interface with Texas Instruments Z-Stack, written in Go.
https://shimmeringbee.io/
Apache License 2.0
27 stars 8 forks source link

Node Table can be accessed by two different Go routines #12

Closed pwood closed 4 years ago

pwood commented 4 years ago

While the network manager owns the NodeTable, it's also used by a Go routine in node_receive_message.go. As such it's possible for a concurrent read/write. A read/write lock might be appropriate here.