diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-11-07 11:16:17 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-11-07 13:32:36 +1100 |
commit | 5d12a6bf9905f90fad6f32332f034bed7706c2f2 (patch) | |
tree | 18e5643169b483cc85edc709c646ba30421f98e2 | |
parent | 1d40d03bb222c03e42771e185f4da6fa277faae9 (diff) |
restore some code that was erroneously removed
-rw-r--r-- | pkg/tasks/tasks.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/tasks/tasks.go b/pkg/tasks/tasks.go index 479006808..4d9fe67e3 100644 --- a/pkg/tasks/tasks.go +++ b/pkg/tasks/tasks.go @@ -109,6 +109,10 @@ func (m *ViewBufferManager) NewCmdTask(start func() (*exec.Cmd, io.Reader), pref m.Log.Errorf("error when running cmd task: %v", err) } } + + if onDone != nil { + onDone() + } }) loadingMutex := sync.Mutex{} |