mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-09 23:26:47 +02:00
removed request message
This commit is contained in:
parent
c014b3a097
commit
bd7f68bb6a
7 changed files with 16 additions and 98 deletions
|
@ -28,7 +28,6 @@
|
|||
#include "common/log.h"
|
||||
#include "common/snapException.h"
|
||||
#include "message/time.h"
|
||||
#include "message/request.h"
|
||||
#include "message/hello.h"
|
||||
#include "controller.h"
|
||||
|
||||
|
@ -139,7 +138,7 @@ bool Controller::sendTimeSyncMessage(long after)
|
|||
return false;
|
||||
|
||||
lastTimeSync = now;
|
||||
msg::Request timeReq(kTime);
|
||||
msg::Time timeReq;
|
||||
clientConnection_->send(&timeReq);
|
||||
return true;
|
||||
}
|
||||
|
@ -176,7 +175,7 @@ void Controller::worker()
|
|||
msg::Hello hello(clientConnection_->getMacAddress());
|
||||
clientConnection_->send(&hello);
|
||||
|
||||
msg::Request timeReq(kTime);
|
||||
msg::Time timeReq;
|
||||
for (size_t n=0; n<50 && active_; ++n)
|
||||
{
|
||||
shared_ptr<msg::Time> reply = clientConnection_->sendReq<msg::Time>(&timeReq, chronos::msec(2000));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue