repeat baf0cdcbef1 but for BaseUI, thus covering all control protocols
authorPaul Davis <paul@linuxaudiosystems.com>
Sun, 5 Jan 2020 18:40:59 +0000 (11:40 -0700)
committerPaul Davis <paul@linuxaudiosystems.com>
Sun, 5 Jan 2020 18:40:59 +0000 (11:40 -0700)
libs/pbd/base_ui.cc

index 1ea3fdc993dee62014f957712411efe9fc37a560..2ea27a0652bdb3055edd1afc934afb94042cc3d2 100644 (file)
@@ -136,10 +136,6 @@ BaseUI::request_handler (Glib::IOCondition ioc)
 {
        /* check the request pipe */
 
-       if (ioc & ~IO_IN) {
-               _main_loop->quit ();
-       }
-
        if (ioc & IO_IN) {
                request_channel.drain ();
 
@@ -153,6 +149,10 @@ BaseUI::request_handler (Glib::IOCondition ioc)
                handle_ui_requests ();
        }
 
+       if (ioc & ~(IO_IN|IO_PRI)) {
+               _main_loop->quit ();
+       }
+
        return true;
 }