diff options
Diffstat (limited to 'src/Common/Request/DisconnectRequest.h')
-rw-r--r-- | src/Common/Request/DisconnectRequest.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Common/Request/DisconnectRequest.h b/src/Common/Request/DisconnectRequest.h index 3f6e018..1b2d467 100644 --- a/src/Common/Request/DisconnectRequest.h +++ b/src/Common/Request/DisconnectRequest.h @@ -54,7 +54,7 @@ class DisconnectRequest: public Request { if(isSent()) return false; - if(!connection->send(Net::Packet(Net::Packet::TYPE_DISCONNECT, requestId))) + if(!connection->send(Net::Packet(Net::Packet::DISCONNECT, requestId))) return false; setSent(); @@ -65,7 +65,7 @@ class DisconnectRequest: public Request { if(isFinished()) return false; - if(packet.getType() != Net::Packet::TYPE_OK) + if(packet.getType() != Net::Packet::OK) return false; // TODO Logging connection->disconnect(); |