Changeset cadaa0


Ignore:
Timestamp:
May 5, 2016, 9:43:09 AM (9 years ago)
Author:
Frederik Heber <heber@…>
Parents:
996ef1
git-author:
Frederik Heber <heber@…> (09/23/14 16:14:18)
git-committer:
Frederik Heber <heber@…> (05/05/16 09:43:09)
Message:

FIX: Setting ActionQueue::_lastchangedaction without heeding whether Action failed is bad.

  • causes segfault when notification informs about change and _lastchangeaction is still NULL (as the very first Action failed).
  • we now only notify when action succeeded.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/ActionQueue.cpp

    r996ef1 rcadaa0  
    215215        mtx_queue.unlock();
    216216      }
     217      if (lastActionOk) {
     218        OBSERVE;
     219        NOTIFY(ActionQueued);
     220        _lastchangedaction = actionqueue[CurrentAction];
     221      }
    217222      // access actionqueue, hence using mutex
    218223      mtx_queue.lock();
Note: See TracChangeset for help on using the changeset viewer.