mirror of
https://github.com/yudai/gotty.git
synced 2026-02-19 22:48:08 +01:00
Remove a mutex unlock
This commit is contained in:
parent
f7b54e9e5a
commit
04deb4902f
1 changed files with 0 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue