1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Fix unlocking bug noticed during refactor

This commit is contained in:
Sean Smith 2020-10-08 08:17:52 -04:00
parent e23cec2897
commit 7643109c63

View File

@ -155,11 +155,11 @@ func runCommandPty(widget *Widget, cmd *exec.Cmd) error {
func (widget *Widget) handleError(err error) {
widget.m.Lock()
defer widget.m.Unlock()
_, writeErr := widget.buffer.WriteString(err.Error())
if writeErr != nil {
return
}
widget.m.Unlock()
}
func redrawLoop(widget *Widget) {