Parcourir la source

[2190] reverse default kqueue/poll

Jelte Jansen il y a 12 ans
Parent
commit
7230b23ea3
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/bin/msgq/msgq.py.in

+ 2 - 2
src/bin/msgq/msgq.py.in

@@ -131,9 +131,9 @@ class MsgQ:
     def setup_poller(self):
         """Set up the poll thing.  Internal function."""
         try:
-            self.poller = select.poll()
-        except AttributeError:
             self.kqueue = select.kqueue()
+        except AttributeError:
+            self.poller = select.poll()
 
     def add_kqueue_socket(self, socket, write_filter=False):
         """Add a kquque filter for a socket.  By default the read