update surface when remote ids change
[ardour.git] / libs / surfaces / mackie / mackie_control_protocol_poll.cc
index 047620ca41bf4bc68305a0c0362d2c3305c39cbd..859b67c17dd91966df56ddc3f21488e943b7497c 100644 (file)
@@ -65,6 +65,8 @@ void * MackieControlProtocol::monitor_work()
                        try { read_ports(); }
                        catch ( exception & e ) {
                                cout << "MackieControlProtocol::poll_ports caught exception: " << e.what() << endl;
+                               _ports_changed = true;
+                               update_ports();
                        }
                }
                // provide a cancellation point
@@ -129,7 +131,7 @@ void MackieControlProtocol::read_ports()
 bool MackieControlProtocol::poll_ports()
 {
        int timeout = 10; // milliseconds
-       int no_ports_sleep = 10; // milliseconds
+       int no_ports_sleep = 1000; // milliseconds
 
        Glib::Mutex::Lock lock( update_mutex );
        // if there are no ports