diff options
author | Kevin Kuehler <keur@xcf.berkeley.edu> | 2019-10-15 02:01:47 -0700 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-10-16 11:13:53 -0400 |
commit | be4ea0d96b8cc70becb94f2d4e5abe41dea58f3a (patch) | |
tree | 18ec2c9fb9a66522ea71f72f33d699d0bef6c3bf /commands | |
parent | 550ef0bc1f21dfaeb1bf216b28c3fce9a816cb73 (diff) | |
download | aerc-be4ea0d96b8cc70becb94f2d4e5abe41dea58f3a.tar.gz |
Cleanup pager processes after closing a msgviewer
A pager is spawned every time an email is viewed but not killed off when
quitting the msgviewer, thus leading to process leakage. This patch
fixes this by adding a Close method to the msgview widget, which is
called in the close command.
Signed-off-by: Kevin Kuehler <keur@xcf.berkeley.edu>
Diffstat (limited to 'commands')
-rw-r--r-- | commands/msgview/close.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/msgview/close.go b/commands/msgview/close.go index 9966735d..ed86405a 100644 --- a/commands/msgview/close.go +++ b/commands/msgview/close.go @@ -25,6 +25,7 @@ func (Close) Execute(aerc *widgets.Aerc, args []string) error { return errors.New("Usage: close") } mv, _ := aerc.SelectedTab().(*widgets.MessageViewer) + mv.Close() aerc.RemoveTab(mv) return nil } |