9ef2a57b51
Worker.Process* functions were called in different goroutines than Worker.Post*. Protect the map with a mutex. Also make the map unexported to prevent external unprotected accesses. Worker.Process* functions used to delete items from the map. However they didn't delete the element they retrieved: callbacks[msg.InResponseTo()] was read while callbacks[msg] was deleted. I'm not sure I understand why. I tried to delete the element that was accessed - but this broke everything (UI froze at "Connecting..."). I don't believe any elements were actually removed from the map, so the new code just doesn't remove anything. |
||
---|---|---|
commands | ||
config | ||
contrib | ||
lib | ||
widgets | ||
worker | ||
.gitignore | ||
LICENSE | ||
README.md | ||
aerc.go | ||
go.mod | ||
go.sum |
README.md
aerc
aerc is a work in progress email client for your terminal.
It is not yet suitable for daily use.
Building
go build
Usage
$ mkdir ~/.config/aerc
$ cp config/*.conf ~/.config/aerc/
$ vim ~/.config/aerc/accounts.conf
Fill in your account details and configure the rest to taste, then run aerc2
.
Contributing
Send patches to ~sircmpwn/public-inbox@lists.sr.ht.
Bugs & todo here: ~sircmpwn/aerc2