Commit 7185b57e authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[2916] corrected handling of aux socket wrt exception safety

parent 1910b46d
......@@ -200,7 +200,8 @@ TEST_F(LocalSocketTest, asyncPartialRead) {
ScopedSocket aux_sockpair[2];
LocalSocket aux_sock(io_service_, aux_sockpair[0].release());
LocalSocket aux_sock(io_service_, aux_sockpair[0].get());
aux_sockpair[0].release(); // on successful construction we should release
bool aux_callback_called = false;
aux_sock.asyncRead(boost::bind(&callback, _1, &io_service_,
&aux_callback_called, false), &ch, 1);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment