Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit f940d5f

Browse files
committed
Handle reading '0' response in bytes[0] response
1 parent 021857c commit f940d5f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ServiceStack.Redis/Pipeline/QueuedRedisOperation.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ public void ProcessResult()
104104
else if (BytesReadCommand != null)
105105
{
106106
var result = BytesReadCommand();
107+
if (result != null && result.Length == 0)
108+
result = null;
109+
107110
if (OnSuccessBytesCallback != null)
108111
{
109112
OnSuccessBytesCallback(result);

0 commit comments

Comments
 (0)