remove warning if disable commprotocol

This commit is contained in:
Neucrack
2025-01-02 15:34:13 +08:00
parent b3748fa92c
commit 0ade9c626b

View File

@@ -882,6 +882,11 @@ namespace maix::comm::listener_priv
try
{
this->protocol = new maix::comm::CommProtocol();
if(!this->protocol->valid())
{
delete this->protocol;
this->protocol = nullptr;
}
}
catch (const std::exception &e)
{