aboutsummaryrefslogtreecommitdiff
path: root/network-handler/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'network-handler/client.cpp')
-rw-r--r--network-handler/client.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/network-handler/client.cpp b/network-handler/client.cpp
index c2825d7..f767f6d 100644
--- a/network-handler/client.cpp
+++ b/network-handler/client.cpp
@@ -23,7 +23,7 @@ void Client::handle_receive(const error_code &ec, size_t read_bytes)
std::cout << "Received: " << std::string(data.begin(), data.end()) << std::endl;
receive();
} else {
- on_done();
+ done();
}
}
@@ -36,6 +36,6 @@ void Client::receive() {
);
}
-void Client::set_on_done(Client::OnDoneFT f) {
- on_done = f;
+void Client::on_done(Client::OnDoneFT f) {
+ done = f;
}