Jason R. Coombs avatar Jason R. Coombs committed 1cf65bd Merge

Merge changes from 7.1.1

Comments (0)

Files changed (3)

 0ca8d8bf8d2f6b72d5b4302fb8c94b0b2bf48dae 6.0.1
 a5ac53057f0726cf00830918b8e246e6da27d695 7.0
 b7816c2735ad713432cb99d745e06f6736646d45 7.1
+04b0b7b34f90c19a6421760602910ee5d5ed43a3 7.1.1
 Readability, maintainability, and usability go up.
+* Fixed regression created in 7.0 where PeriodicCommandFixedDelay would only
+  cause the first command to be scheduled, but not subsequent ones.
     def _dispatcher(self, connection, event):
-        Dispatch event from connection.
+        Dispatch events to on_<event.type> method, if present.
         log.debug("_dispatcher: %s", event.type)
-        m = "on_" + event.type
-        if hasattr(self, m):
-            getattr(self, m)(connection, event)
+        do_nothing = lambda c, e: None
+        method = getattr(self, "on_" + event.type, do_nothing)
+        method(connection, event)
     def _dcc_disconnect(self, c, e):
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.