Skip to content

Commit 3a61037

Browse files
committed
Retry client should return AlreadySubscribed error
Users may leverage the Error to avoid remembering client-side the subscription status. eg. Always subscribing and calling script_pop in case AlreadySubscribed is returned.
1 parent abdbd02 commit 3a61037

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ macro_rules! impl_inner_call {
4949
drop(read_client);
5050
match res {
5151
Ok(val) => return Ok(val),
52-
Err(Error::Protocol(_)) => {
52+
Err(Error::Protocol(_) | Error::AlreadySubscribed(_)) => {
5353
return res;
5454
},
5555
Err(e) => {

0 commit comments

Comments
 (0)