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:
parent
e23cec2897
commit
7643109c63
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user