Skip to content
Snippets Groups Projects
Unverified Commit 41bc65da authored by Sébastien Blin's avatar Sébastien Blin
Browse files

connectionManager: sendRequest should use the good state

on iOS, the default value of an enum is not the first one, this means that
requests for new channel are not working

Change-Id: I190625bc34e94622c2e7d68d936818c204f96413
parent a9a2c9ec
No related branches found
No related tags found
No related merge requests found
......@@ -384,6 +384,7 @@ ConnectionManager::Impl::sendChannelRequest(std::shared_ptr<MultiplexedSocket>&
auto channelSock = sock->addChannel(name);
ChannelRequest val;
val.name = channelSock->name();
val.state = ChannelRequestState::REQUEST;
val.channel = channelSock->channel();
std::stringstream ss;
msgpack::pack(ss, val);
......
......@@ -47,7 +47,7 @@ enum class ChannelRequestState {
struct ChannelRequest {
std::string name {};
uint16_t channel {0};
ChannelRequestState state;
ChannelRequestState state {ChannelRequestState::REQUEST};
MSGPACK_DEFINE(name, channel, state)
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment