From 72acf6b98090014e2d3480a11697f634fd2fd05b Mon Sep 17 00:00:00 2001 From: tidwall Date: Sat, 29 Feb 2020 14:10:33 -0700 Subject: [PATCH] Removed closed check --- redcon.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/redcon.go b/redcon.go index 7357be2..d622fca 100644 --- a/redcon.go +++ b/redcon.go @@ -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 {