mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-12 20:36:38 +01:00
restore previous acceptor later
This commit is contained in:
parent
29ceed74a2
commit
e3fc23bae8
1 changed files with 2 additions and 2 deletions
|
@ -1094,8 +1094,8 @@ namespace stream
|
|||
auto oldAcceptor = m_Acceptor;
|
||||
m_Acceptor = [acceptor, oldAcceptor, this](std::shared_ptr<Stream> stream)
|
||||
{
|
||||
m_Acceptor = oldAcceptor;
|
||||
acceptor (stream);
|
||||
acceptor (stream); // m_Acceptor might be set after
|
||||
m_Acceptor = oldAcceptor; // so we must restore old one before
|
||||
};
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue