diff --git a/MQTTSNGateway/README.md b/MQTTSNGateway/README.md index 9b05649..4765264 100644 --- a/MQTTSNGateway/README.md +++ b/MQTTSNGateway/README.md @@ -25,7 +25,7 @@ $ make install INSTALL_DIR=/path/to/your_directory CONFIG_DIR=/path/to/your_dire ### **step2. Execute the Gateway.** ```` -$ cd ../ +$ cd ../../ $ ./MQTT-SNGateway [-f Config file name] ```` If you get the error message as follows: diff --git a/MQTTSNGateway/src/MQTTSNGWClientRecvTask.cpp b/MQTTSNGateway/src/MQTTSNGWClientRecvTask.cpp index 6e1ea6a..f42d102 100644 --- a/MQTTSNGateway/src/MQTTSNGWClientRecvTask.cpp +++ b/MQTTSNGateway/src/MQTTSNGWClientRecvTask.cpp @@ -145,10 +145,7 @@ void ClientRecvTask::run() } } } - else - { - client = _gateway->getClientList()->getClient(senderAddr); - } + client = _gateway->getClientList()->getClient(senderAddr); } if ( client )