summary refs log tree commit diff stats
path: root/commands/msg/unsubscribe.go
diff options
context:
space:
mode:
authorAndrew Jeffery <dev@jeffas.io>2020-07-06 20:14:15 +0100
committerReto Brunner <reto@labrat.space>2020-07-08 09:07:43 +0200
commitfda3f43e7c5e5a175a01dd3e5b8637b1ecb30c51 (patch)
tree8f6f15424a9e5711ade8b9ef66679cdf5aeb4779 /commands/msg/unsubscribe.go
parent3e6189f243c8d0717979da1a1a18e46996f6a2ef (diff)
downloadaerc-fda3f43e7c5e5a175a01dd3e5b8637b1ecb30c51.tar.gz
Allow open to be asynchronous
This stops the ui being blocked while the resource is opened. The wait
ensures that resources are reclaimed when the process finishes while
aerc is still running.
Diffstat (limited to 'commands/msg/unsubscribe.go')
-rw-r--r--commands/msg/unsubscribe.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/msg/unsubscribe.go b/commands/msg/unsubscribe.go
index 1a2dd37..dec90d5 100644
--- a/commands/msg/unsubscribe.go
+++ b/commands/msg/unsubscribe.go
@@ -115,6 +115,6 @@ func unsubscribeMailto(aerc *widgets.Aerc, u *url.URL) error {
 }
 
 func unsubscribeHTTP(u *url.URL) error {
-	go lib.OpenFile(u.String())
+	lib.OpenFile(u.String(), nil)
 	return nil
 }