mirror of
https://github.com/sorenisanerd/gotty.git
synced 2024-11-22 12:24:25 +00:00
Remove a mutex unlock
This commit is contained in:
parent
f7b54e9e5a
commit
04deb4902f
@ -122,7 +122,6 @@ func (context *clientContext) sendInitialize() error {
|
|||||||
|
|
||||||
titleBuffer := new(bytes.Buffer)
|
titleBuffer := new(bytes.Buffer)
|
||||||
if err := context.app.titleTemplate.Execute(titleBuffer, titleVars); err != nil {
|
if err := context.app.titleTemplate.Execute(titleBuffer, titleVars); err != nil {
|
||||||
context.writeMutex.Unlock()
|
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err := context.write(append([]byte{SetWindowTitle}, titleBuffer.Bytes()...)); err != nil {
|
if err := context.write(append([]byte{SetWindowTitle}, titleBuffer.Bytes()...)); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user