fix issue in udp_socket with unusual socket failure
This commit is contained in:
parent
6c4d1b9143
commit
a499ace80b
|
@ -1,3 +1,4 @@
|
||||||
|
* fix issue in udp_socket with unusual socket failure
|
||||||
* split progress_notification alert category into file-, piece- and block progress
|
* split progress_notification alert category into file-, piece- and block progress
|
||||||
* utp close-reason fix
|
* utp close-reason fix
|
||||||
* exposed default add_torrent_params flags to python bindings
|
* exposed default add_torrent_params flags to python bindings
|
||||||
|
|
|
@ -586,8 +586,10 @@ void udp_socket::setup_read(udp::socket* s)
|
||||||
error_code ec;
|
error_code ec;
|
||||||
boost::system::system_error e(ec);
|
boost::system::system_error e(ec);
|
||||||
#endif
|
#endif
|
||||||
get_io_service().post(boost::bind(&udp_socket::on_read
|
on_read_impl(udp::endpoint(), e.code(), 0);
|
||||||
, this, e.code(), s));
|
m_abort = true;
|
||||||
|
close();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue