windows: Fix accidental rename
This commit is contained in:
@@ -152,7 +152,7 @@ void datapath::windows::server::_watcher()
|
||||
std::unique_lock<std::mutex> ul(this->lock);
|
||||
std::list<HANDLE> to_kill;
|
||||
|
||||
if (this->_on_accept) {
|
||||
if (this->on_accept) {
|
||||
for (auto itr = this->pending_sockets.begin(); itr != this->pending_sockets.end(); itr++) {
|
||||
HANDLE handle = *itr;
|
||||
bool accept = true;
|
||||
@@ -161,7 +161,7 @@ void datapath::windows::server::_watcher()
|
||||
sock->_connect(handle);
|
||||
|
||||
auto isock = std::dynamic_pointer_cast<datapath::isocket>(sock);
|
||||
this->_on_accept(accept, isock);
|
||||
this->on_accept(accept, isock);
|
||||
|
||||
if (accept) {
|
||||
to_kill.push_back(handle);
|
||||
|
||||
@@ -39,8 +39,8 @@ void datapath::windows::socket::_connect(HANDLE handle)
|
||||
|
||||
void datapath::windows::socket::_disconnect()
|
||||
{
|
||||
if (this->_on_close) {
|
||||
this->_on_close();
|
||||
if (this->on_close) {
|
||||
this->on_close();
|
||||
}
|
||||
|
||||
{
|
||||
@@ -96,8 +96,8 @@ void datapath::windows::socket::_watcher()
|
||||
});
|
||||
read_content_ov->_on_wait_success.add([this, &read_buffer, &state, &waitable](datapath::error ec) {
|
||||
// We have content!
|
||||
if (this->_on_message) {
|
||||
this->_on_message(read_buffer);
|
||||
if (this->on_message) {
|
||||
this->on_message(read_buffer);
|
||||
state = readstate::Unknown;
|
||||
} else {
|
||||
// We're buffering the message in read_buffer until there is a hook to on_message.
|
||||
@@ -138,8 +138,8 @@ void datapath::windows::socket::_watcher()
|
||||
// This logic is in the on_wait_success handler, and continued here.
|
||||
if (!waitable) {
|
||||
// We currently have a message buffered, but there was no handler last time we checked.
|
||||
if (this->_on_message) {
|
||||
this->_on_message(read_buffer);
|
||||
if (this->on_message) {
|
||||
this->on_message(read_buffer);
|
||||
state = readstate::Unknown;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user