mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
IoEngine#SpawnCoroutine(): don't copy parameter
This commit is contained in:
parent
c37c40d8c6
commit
d98493c90f
@ -116,9 +116,9 @@ public:
|
||||
|
||||
/* With dedicated strand in *Connection classes. */
|
||||
template <typename Handler, typename Function>
|
||||
static void SpawnCoroutine(Handler h, Function f) {
|
||||
static void SpawnCoroutine(Handler& h, Function f) {
|
||||
|
||||
boost::asio::spawn(std::forward<Handler>(h),
|
||||
boost::asio::spawn(h,
|
||||
[f](boost::asio::yield_context yc) {
|
||||
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user