Remove tab before going async
To prevent repeated attempts to send
This commit is contained in:
parent
f77d7c2c3d
commit
254e6fe73f
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue