f27db33305
Message IDs are allocated for both messages from UI to workers and the other way around. Hence, the global nextId variable is accessed from multiple goroutines. Instead, use atomic to access the global counter. |
||
---|---|---|
.. | ||
imap | ||
types | ||
worker.go |