summaryrefslogtreecommitdiffstats
path: root/pkg/gui/recording.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/recording.go')
-rw-r--r--pkg/gui/recording.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/gui/recording.go b/pkg/gui/recording.go
index 0f8f9a370..936413799 100644
--- a/pkg/gui/recording.go
+++ b/pkg/gui/recording.go
@@ -9,6 +9,7 @@ import (
"time"
"github.com/jesseduffield/gocui"
+ "github.com/jesseduffield/lazygit/pkg/utils"
)
func recordingEvents() bool {
@@ -28,10 +29,10 @@ func (gui *Gui) replayRecordedEvents() {
return
}
- go func() {
+ go utils.Safe(func() {
time.Sleep(time.Second * 20)
log.Fatal("20 seconds is up, lazygit recording took too long to complete")
- }()
+ })
events, err := gui.loadRecordedEvents()
if err != nil {