Removed closed check

This commit is contained in:
tidwall 2020-02-29 14:10:33 -07:00
parent 5c8de50bde
commit 72acf6b980
1 changed files with 0 additions and 3 deletions

View File

@ -497,9 +497,6 @@ func (dc *detachedConn) Flush() error {
// ReadCommand read the next command from the client.
func (dc *detachedConn) ReadCommand() (Command, error) {
if dc.closed {
return Command{}, errors.New("closed")
}
if len(dc.cmds) > 0 {
cmd := dc.cmds[0]
if len(dc.cmds) == 1 {