Merge pull request #76 from QuentinPerez/fix

Remove a mutex unlock
This commit is contained in:
Iwasaki Yudai 2015-10-12 12:11:43 -07:00
commit 6013e43933

View File

@ -122,7 +122,6 @@ func (context *clientContext) sendInitialize() error {
titleBuffer := new(bytes.Buffer)
if err := context.app.titleTemplate.Execute(titleBuffer, titleVars); err != nil {
context.writeMutex.Unlock()
return err
}
if err := context.write(append([]byte{SetWindowTitle}, titleBuffer.Bytes()...)); err != nil {