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

View file

@ -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() {