]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Server/src/plant.cpp
arregle un poquito la and
[z.facultad/75.42/plaqui.git] / Server / src / plant.cpp
index b01f1a51ee6c7c153eeda30b7964f9d90f5efdba..ce9f737d19822eba5ba4dac9d74875f36a9c8a64 100644 (file)
@@ -153,6 +153,24 @@ bool Plant::transmission_stop(const string& host,
        return false; // No la encontró.
 }
 
+bool Plant::on_transmission_finished(Transmitter* transmission) {
+#ifdef DEBUG
+       cerr << __FILE__ << "(" << __LINE__ << ")"
+               <<  ": on_transmission_finished(transmission = "
+               << transmission << ")" << endl;
+#endif // DEBUG
+       Glib::Mutex::Lock lock(transmissions_mutex);
+       transmissions.remove(transmission);
+#ifdef DEBUG
+       cerr << __FILE__ << "(" << __LINE__ << ")"
+               <<  ": lista de conexiones" << endl;
+       for (TransmitterList::const_iterator i = transmissions.begin();
+                       i != transmissions.end(); i++) {
+               cerr << "\t " << *i << endl;
+       }
+#endif // DEBUG
+}
+
 bool Plant::set_open(const std::string& element, bool open) {
 #ifdef DEBUG
                cerr << __FILE__ << "(" << __LINE__ << ")"