Skip to content
Snippets Groups Projects
Commit e8ec54fc authored by Adrien Béraud's avatar Adrien Béraud Committed by Sébastien Blin
Browse files

MultiplexedSocket: don't send EOF when receiving EOF

If we receive EOF, didn't the peer already closed the socket ?

Change-Id: I06ae908b49ddd4ba0a5eb43ff25f51da1f15cc21
parent 69c98285
Branches
Tags
No related merge requests found
...@@ -421,7 +421,7 @@ MultiplexedSocket::Impl::handleChannelPacket(uint16_t channel, std::vector<uint8 ...@@ -421,7 +421,7 @@ MultiplexedSocket::Impl::handleChannelPacket(uint16_t channel, std::vector<uint8
auto sockIt = sockets.find(channel); auto sockIt = sockets.find(channel);
if (channel > 0 && sockIt->second) { if (channel > 0 && sockIt->second) {
if (pkt.size() == 0) { if (pkt.size() == 0) {
sockIt->second->shutdown(); sockIt->second->stop();
sockets.erase(sockIt); sockets.erase(sockIt);
} else { } else {
sockIt->second->onRecv(std::move(pkt)); sockIt->second->onRecv(std::move(pkt));
...@@ -789,7 +789,6 @@ ChannelSocket::onRecv(std::vector<uint8_t>&& pkt) { ...@@ -789,7 +789,6 @@ ChannelSocket::onRecv(std::vector<uint8_t>&& pkt) {
pimpl_->cv.notify_all(); pimpl_->cv.notify_all();
} }
std::shared_ptr<IceTransport> std::shared_ptr<IceTransport>
ChannelSocket::underlyingICE() const ChannelSocket::underlyingICE() const
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment