Browse Source

restore previous acceptor later

pull/839/head
orignal 8 years ago
parent
commit
e3fc23bae8
  1. 4
      Streaming.cpp

4
Streaming.cpp

@ -1094,8 +1094,8 @@ namespace stream
auto oldAcceptor = m_Acceptor; auto oldAcceptor = m_Acceptor;
m_Acceptor = [acceptor, oldAcceptor, this](std::shared_ptr<Stream> stream) m_Acceptor = [acceptor, oldAcceptor, this](std::shared_ptr<Stream> stream)
{ {
m_Acceptor = oldAcceptor; acceptor (stream); // m_Acceptor might be set after
acceptor (stream); m_Acceptor = oldAcceptor; // so we must restore old one before
}; };
} }
}); });

Loading…
Cancel
Save