Skip to content
Snippets Groups Projects
Commit 9e044f70 authored by Éloïs's avatar Éloïs
Browse files

[fix] ws2p-v1: handle case connection closed at negotiation

parent fbf98ce5
No related branches found
No related tags found
1 merge request!127Elois/fixs
......@@ -295,7 +295,11 @@ impl WS2PModuleDatas {
return WS2PSignal::WSError(ws2p_full_id);
}
} else {
panic!("Fatal error : no websocket for {} !", ws2p_full_id);
// Connection closed by remote peer
self.ws2p_endpoints
.get_mut(&ws2p_full_id)
.expect("Endpoint don't exist !")
.1 = WS2PConnectionState::Close;
}
}
WS2PConnectionMessagePayload::ValidAckMessage(response, new_con_state) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment