diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-05-14 14:29:50 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-05-14 14:29:50 -0400 |
commit | 254e6fe73f227bea480c2c887d08799b39474ef4 (patch) | |
tree | 11eb0e430fe236cb65a2f339cdf1d232bfff24f0 | |
parent | f77d7c2c3d578ae5a724e1e8b91656304dde75d0 (diff) |
Remove tab before going async
To prevent repeated attempts to send
-rw-r--r-- | commands/compose/send.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/compose/send.go b/commands/compose/send.go index ed3bd43..40ab455 100644 --- 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() { |