Removing delete condition (img) from commonitor
This commit is contained in:
parent
0e62d96cc5
commit
0f4879fe64
1 changed files with 2 additions and 3 deletions
|
@ -150,9 +150,8 @@ void ComMonitor::Write(Message *msg) {
|
|||
//cout << "Message sent to monitor: " << str->c_str() << endl;
|
||||
write(clientID, str.c_str(), str.length());
|
||||
|
||||
if (!msg->CompareID(MESSAGE_CAM_IMAGE)) {
|
||||
// Delete msg
|
||||
delete(msg);
|
||||
}
|
||||
|
||||
// Call user method after write
|
||||
Write_Post();
|
||||
|
|
Loading…
Reference in a new issue