mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 19:21:13 +00:00
Disconnect on protocol timeout (#2212)
This commit is contained in:
@@ -506,7 +506,7 @@ where
|
||||
Ok(Async::Ready(())) => {
|
||||
deadline.reset(Instant::now() + Duration::from_secs(60));
|
||||
let event = CustomProtoHandlerOut::ProtocolError {
|
||||
is_severe: false,
|
||||
is_severe: true,
|
||||
error: "Timeout when opening protocol".to_string().into(),
|
||||
};
|
||||
return_value = Some(ProtocolsHandlerEvent::Custom(event));
|
||||
|
||||
Reference in New Issue
Block a user