aerc

Working clone of aerc-mail.org
git clone git://git.danielmoch.com/aerc.git
Log | Files | Refs | README | LICENSE

commit 254e6fe73f227bea480c2c887d08799b39474ef4
parent f77d7c2c3d578ae5a724e1e8b91656304dde75d0
Author: Drew DeVault <sir@cmpwn.com>
Date:   Tue, 14 May 2019 14:29:50 -0400

Remove tab before going async

To prevent repeated attempts to send

Diffstat:
Mcommands/compose/send.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commands/compose/send.go b/commands/compose/send.go @@ -80,6 +80,7 @@ func SendMessage(aerc *widgets.Aerc, args []string) error { } aerc.SetStatus("Sending...") + aerc.RemoveTab(composer) sendAsync := func() { tlsConfig := &tls.Config{ @@ -151,7 +152,6 @@ func SendMessage(aerc *widgets.Aerc, args []string) error { defer wc.Close() composer.WriteMessage(header, wc) composer.Close() - aerc.RemoveTab(composer) } go func() {