mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
State is disconnected, not invalid
This commit is contained in:
parent
034976748a
commit
aabd19f78c
1 changed files with 4 additions and 1 deletions
|
@ -133,7 +133,10 @@ impl<C: ServerConnector> Stream for Client<C> {
|
|||
self.state = ClientState::Connecting(connect);
|
||||
self.poll_next(cx)
|
||||
}
|
||||
ClientState::Disconnected => Poll::Ready(None),
|
||||
ClientState::Disconnected => {
|
||||
self.state = ClientState::Disconnected;
|
||||
Poll::Pending
|
||||
}
|
||||
ClientState::Connecting(mut connect) => match Pin::new(&mut connect).poll(cx) {
|
||||
Poll::Ready(Ok(Ok(stream))) => {
|
||||
let bound_jid = stream.jid.clone();
|
||||
|
|
Loading…
Reference in a new issue