From fda3f43e7c5e5a175a01dd3e5b8637b1ecb30c51 Mon Sep 17 00:00:00 2001 From: Andrew Jeffery Date: Mon, 6 Jul 2020 20:14:15 +0100 Subject: 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. --- commands/msg/unsubscribe.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/msg/unsubscribe.go') 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 } -- cgit 1.4.1-2-gfad0