Changeset 6cbdac


Ignore:
Timestamp:
02/02/12 12:35:08 (4 months ago)
Author:
Stefan Persson <stefan.persson@…>
Branches:
('master', 'deebf2045e7119c339412580f37a1e653f7d5715')('controller-upgrade', '00f95d22e12d96ef089e0902ef62ae8ce841dc6f')
Children:
f62881d42e171b9d38911d42e2e2239cf4b08d55
Parents:
91cf55816c082f625d54a715647067388cf818af
git-author:
Stefan Persson <stefan.persson@telldus.se>2012-02-02 12:35:08+01:00
git-committer:
Stefan Persson <stefan.persson@telldus.se>2012-02-02 12:35:08+01:00
Message:

Fixed TelldusCenter freeze when saving device changes in Linux/Mac

File:
1 edited

Legend:

Unmodified
Added
Removed
  • telldus-core/client/CallbackDispatcher.cpp

    r245864 r6cbdac  
    2222TDDeviceEventDispatcher::~TDDeviceEventDispatcher() { 
    2323        this->wait(); 
    24         d->mutex.unlock(); 
    2524} 
    2625 
     
    3433 
    3534        doneRunning = true; 
     35        d->mutex.unlock(); 
    3636} 
    3737 
     
    4646TDDeviceChangeEventDispatcher::~TDDeviceChangeEventDispatcher() { 
    4747        this->wait(); 
    48         d->mutex.unlock(); 
    4948} 
    5049 
     
    5655        d->event(deviceId, changeEvent, changeType, d->id, d->context); 
    5756        doneRunning = true; 
     57        d->mutex.unlock(); 
    5858} 
    5959 
     
    6767TDRawDeviceEventDispatcher::~TDRawDeviceEventDispatcher() { 
    6868        this->wait(); 
    69         d->mutex.unlock(); 
    7069} 
    7170 
     
    7776        d->event(strData.c_str(), controllerId, d->id, d->context); 
    7877        doneRunning = true; 
     78        d->mutex.unlock(); 
    7979} 
    8080 
     
    8888TDSensorEventDispatcher::~TDSensorEventDispatcher() { 
    8989        this->wait(); 
    90         d->mutex.unlock(); 
    9190} 
    9291 
     
    9897        d->event(protocol.c_str(), model.c_str(), sensorId, dataType, value.c_str(), timestamp, d->id, d->context); 
    9998        doneRunning = true; 
     99        d->mutex.unlock(); 
    100100} 
Note: See TracChangeset for help on using the changeset viewer.