panic in getLockedClient

This commit is contained in:
shoopea 2019-07-31 14:47:21 +08:00
parent 76ac5fabaa
commit 3db0777a93

View File

@ -23,9 +23,8 @@ func getLockedClient(id int64, createMissing bool) (*ChirpClient, bool) {
return c, true
} else {
muxClients.RUnlock()
//c := new(ChirpClient)
//return c, false
return nil, false
c := new(ChirpClient)
return c, false
}
}