mirror of https://github.com/tidwall/redcon.git
Removed closed check
This commit is contained in:
parent
5c8de50bde
commit
72acf6b980
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue