Rweard fixed error

This commit is contained in:
Xisco Bosch 2017-03-15 12:27:09 +01:00
parent 4c194b2430
commit 7c7ebedff8
2 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ namespace carla {
}
// This is the thread that sends a string over the TCP socket.
static void serverWorkerThread(TCPServer &server, Reward &rwd) {
static void serverWorkerThread(TCPServer &server, const Reward &rwd) {
std::string message;
bool correctSerialize = rwd.SerializeToString(&message);
@ -91,7 +91,7 @@ namespace carla {
[this](const std::string &msg) { worldSendThread(this->_world, msg); },
[this]() { Connect(this->_world); } },
_serverThread{
[this](Reward &rwd) { serverWorkerThread(this->_server, rwd); },
[this](const Reward &rwd) { serverWorkerThread(this->_server, rwd); },
[this]() { Connect(this->_server); } },
_clientThread{
[this]() { return clientWorkerThread(this->_client); },

View File

@ -9,7 +9,7 @@
namespace carla {
namespace server {
/// Synchronous TCP server.
/// { TCP server.
///
/// A new socket is created for every connection (every write and read).
class CARLA_API TCPServer : private NonCopyable {