]> 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>
Fri, 9 Mar 2012 15:29:36 +0000 (15:29 +0000)
committerronag <ronag@362d55ac-95cf-4e76-9f9a-cbaa9c17b72d>
Fri, 9 Mar 2012 15:29:36 +0000 (15:29 +0000)
protocol/osc/server.cpp

index 794323a5afe597a8348cec0fbbb8866e71ccc7fc..b8361c418a324fb0ab1aa4842988dca9c7fc9600 100644 (file)
@@ -225,8 +225,11 @@ public:
        \r
        void on_next(const monitor::event& e) override\r
        {\r
-               BOOST_FOREACH(auto& connection, *connection_set_)\r
-                       service_.post([=]{connection->on_next(e);});            \r
+               service_.post([=]\r
+               {                       \r
+                       BOOST_FOREACH(auto& connection, *connection_set_)\r
+                               connection->on_next(e);\r
+               });             \r
        }       \r
 private:               \r
     void start_accept() \r