summaryrefslogtreecommitdiffstats
path: root/src/Common/Connection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Common/Connection.cpp')
-rw-r--r--src/Common/Connection.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Common/Connection.cpp b/src/Common/Connection.cpp
index cde3fc2..510731f 100644
--- a/src/Common/Connection.cpp
+++ b/src/Common/Connection.cpp
@@ -26,13 +26,11 @@ namespace Mad {
namespace Common {
void Connection::receive(const Net::Packet &packet) {
- // receive() will be called by FdManager (main thread)
- // -> let the ThreadManager call the handler in the worker thread
signal(XmlPacket(packet), packet.getRequestId());
}
-void Connection::sendPacket(const XmlPacket &packet, uint16_t requestId) {
- send(packet.encode(requestId));
+bool Connection::sendPacket(const XmlPacket &packet, uint16_t requestId) {
+ return send(packet.encode(requestId));
}
}