~ci-train-bot/biometryd/biometryd-ubuntu-yakkety-1978

« back to all changes in this revision

Viewing changes to src/biometry/devices/dispatching.cpp

Immediately cancel operations instead of enqueuing cancellation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
 
48
48
    void cancel() override
49
49
    {
50
 
        auto i = impl;
51
 
        dispatcher->dispatch([i]()
52
 
        {
53
 
            i->cancel();
54
 
        });
 
50
        // We immediately forward cancel requests as we would be blocked by a stuck operation otherwise.
 
51
        impl->cancel();
55
52
    }
56
53
 
57
54
private: