]> git.sesse.net Git - casparcg/commitdiff
git-svn-id: https://casparcg.svn.sourceforge.net/svnroot/casparcg/server/branches...
authorRonag <Ronag@362d55ac-95cf-4e76-9f9a-cbaa9c17b72d>
Wed, 24 Aug 2011 21:19:52 +0000 (21:19 +0000)
committerRonag <Ronag@362d55ac-95cf-4e76-9f9a-cbaa9c17b72d>
Wed, 24 Aug 2011 21:19:52 +0000 (21:19 +0000)
common/concurrency/executor.h

index 0687889a179a951b0d2e14d82a9162941a4d03dd..ad86d4a379358f11083f56df523ba66b7f703e45 100644 (file)
@@ -117,7 +117,6 @@ public:
        virtual ~executor() // noexcept\r
        {\r
                stop();\r
-               execution_queue_[normal_priority].try_push([]{}); // Wake the execution thread.\r
                join();\r
        }\r
 \r
@@ -144,6 +143,7 @@ public:
        void stop() // noexcept\r
        {\r
                is_running_ = false;    \r
+               execution_queue_[normal_priority].try_push([]{}); // Wake the execution thread.\r
        }\r
 \r
        void wait() // noexcept\r