Skip to content

Commit

Permalink
fix: renderer: attempt to resolve race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Dec 12, 2024
1 parent 4b2b55b commit 661482b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ferocious_renderer.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ func newScreenRenderer(w io.Writer, term string) (s *screenRenderer) {

// close implements renderer.
func (s *screenRenderer) close() (err error) {
s.mu.Lock()
defer s.mu.Unlock()
return s.scr.Close()
}

Expand Down

0 comments on commit 661482b

Please sign in to comment.