From fc70145b1d27e2e1f1c5ae09ba307bf40e0df0b5 Mon Sep 17 00:00:00 2001 From: spacemeowx2 Date: Wed, 24 Jun 2020 10:25:22 +0800 Subject: [PATCH] fix: warp subscription would deadloop when rx of websocket get an error. --- async-graphql-warp/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/async-graphql-warp/src/lib.rs b/async-graphql-warp/src/lib.rs index 28169447..f6075867 100644 --- a/async-graphql-warp/src/lib.rs +++ b/async-graphql-warp/src/lib.rs @@ -202,6 +202,8 @@ where return; } } + } else { + return; } } } @@ -263,6 +265,8 @@ where return; } } + } else { + return; } } }