aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-02-01 08:50:47 -0500
committerDrew DeVault <sir@cmpwn.com>2018-02-01 08:50:47 -0500
commitee73c419507ef74a78ddd6a3466b605cba140b68 (patch)
treef59cdc64d35a49ee2f6b09ba1d7cce55928ddcb6 /ui
parentcfe82414c42ca56fb198b24a0ce2785d7e36512c (diff)
Delete callbacks when done
Diffstat (limited to 'ui')
-rw-r--r--ui/account.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/account.go b/ui/account.go
index f8dcce8..4b92e76 100644
--- a/ui/account.go
+++ b/ui/account.go
@@ -78,6 +78,7 @@ func (acc *AccountTab) postAction(msg types.WorkerMessage,
acc.Worker.PostAction(msg)
if cb != nil {
acc.callbacks[msg] = cb
+ delete(acc.callbacks, msg)
}
}