changeset 259:db2fb33c280e

8137200: UART data transmission through loopback does not work at all Summary: Invalid event type detection issue Reviewed-by: alkonsta
author snazarki
date Thu, 01 Oct 2015 15:24:32 +0300
parents 9bec3afeebfd
children ae4dc5f2d281
files src/se/classes/com/oracle/dio/impl/EventQueue.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/se/classes/com/oracle/dio/impl/EventQueue.java	Tue Sep 29 14:32:55 2015 +0300
+++ b/src/se/classes/com/oracle/dio/impl/EventQueue.java	Thu Oct 01 15:24:32 2015 +0300
@@ -156,7 +156,7 @@
     private void dispatch(final Event evt) {
         synchronized (listeners) {
             for (int i = 0; i < listeners.size(); i += 2) {
-                if (listeners.get(i).equals(evt.getClass())) {
+                if (listeners.get(i).equals(evt.getType())) {
                     EventHandler h = (EventHandler)listeners.get(i+1);
                     h.handleEvent(evt);
                 }