Remove tab before going async

To prevent repeated attempts to send
This commit is contained in:
Drew DeVault 2019-05-14 14:29:50 -04:00
parent f77d7c2c3d
commit 254e6fe73f
1 changed files with 1 additions and 1 deletions

View File

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