Browse Source

Removing delete condition (img) from commonitor

Walleza1 4 years ago
parent
commit
0f4879fe64
1 changed files with 2 additions and 3 deletions
  1. 2
    3
      software/raspberry/superviseur-robot/lib/commonitor.cpp

+ 2
- 3
software/raspberry/superviseur-robot/lib/commonitor.cpp View File

@@ -150,9 +150,8 @@ void ComMonitor::Write(Message *msg) {
150 150
     //cout << "Message sent to monitor: " << str->c_str() << endl;
151 151
     write(clientID, str.c_str(), str.length());
152 152
 
153
-    if (!msg->CompareID(MESSAGE_CAM_IMAGE)) {
154
-        delete(msg);
155
-    }
153
+    // Delete msg 
154
+    delete(msg);
156 155
    
157 156
     // Call user method after write
158 157
     Write_Post();

Loading…
Cancel
Save