Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Jul 2009
    Posts
    12
    Vote Rating
    0
    aconn7 is on a distinguished road

      0  

    Default [FIXED] Dispatcher fix for concurrent access error add new controller

    [FIXED] Dispatcher fix for concurrent access error add new controller


    Iterating over a "copy" of the controller list should eliminate concurrent access errors that occur when trying to add a controller in the middle of an event being dispatched.

    This is the same technique that is used in BaseObservable


    Code:
      private void dispatch(AppEvent event, boolean createhistory) {
        MvcEvent e = new MvcEvent(this, event);
        e.setAppEvent(event);
        if (fireEvent(BeforeDispatch, e)) {
          List<Controllers> copy = new ArrayList<Controllers>(controllers); 
          for (Controller controller : copy) {
            if (controller.canHandle(event)) {
              if (!controller.initialized) {
                controller.initialized = true;
                controller.initialize();
              }
              controller.handleEvent(event);
            }
          }
          fireEvent(AfterDispatch, e);
        }
        if (createhistory && event.isHistoryEvent()) {
          String token = event.getToken();
          if (token == null) {
            token = "" + new Date().getTime();
          }
          history.put(token, event);
          History.newItem(token, false);
        }
      }
    
    }

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Fixed in SVN

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."