summaryrefslogtreecommitdiffstats
path: root/src/Common/Request/DisconnectRequest.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Common/Request/DisconnectRequest.h')
-rw-r--r--src/Common/Request/DisconnectRequest.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Common/Request/DisconnectRequest.h b/src/Common/Request/DisconnectRequest.h
index 9023c13..77509a0 100644
--- a/src/Common/Request/DisconnectRequest.h
+++ b/src/Common/Request/DisconnectRequest.h
@@ -48,7 +48,7 @@ class DisconnectRequest: public Request {
if(isSent())
return false;
- if(!connection->send(Net::Packet(Net::Packet::TYPE_DISCONNECT_REQ, requestId)))
+ if(!connection->send(Net::Packet(Net::Packet::TYPE_DISCONNECT, requestId)))
return false;
setSent();
@@ -59,7 +59,7 @@ class DisconnectRequest: public Request {
if(isFinished())
return false;
- if(packet.getType() != Net::Packet::TYPE_DISCONNECT_REP)
+ if(packet.getType() != Net::Packet::TYPE_OK)
return false; // TODO Logging
connection->disconnect();