diff --git a/libs/CommService/include/CommService/CommService.hpp b/libs/CommService/include/CommService/CommService.hpp index cd9fbc1..e1a946f 100644 --- a/libs/CommService/include/CommService/CommService.hpp +++ b/libs/CommService/include/CommService/CommService.hpp @@ -83,7 +83,10 @@ namespace CommService { public: CommService(std::string dst,std::string src, std::uint16_t id, deviceMajorType majorType, std::string minorType, unsigned short dstPort ): - dstIp(dst),srcIp(src),majorType_(majorType),minorType_(minorType),broadcastPort(dstPort),stopReceiveThread(false),deviceID_(id){} + dstIp(dst),srcIp(src),majorType_(majorType),minorType_(minorType),broadcastPort(dstPort),stopReceiveThread(false),deviceID_(id){ + + ReceivingMessageQueue = std::make_shared>(); + } ~CommService();