From 40dc125b17aff870d8b2cd3b02ffbc0920702302 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Tue, 24 Jul 2018 16:22:03 +1000 Subject: [PATCH] another backport --- llarp/router.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llarp/router.cpp b/llarp/router.cpp index 628630f7d..b9024c4dd 100644 --- a/llarp/router.cpp +++ b/llarp/router.cpp @@ -858,7 +858,7 @@ llarp_router_try_connect(struct llarp_router *router, struct llarp_rc *remote, if(llarp_ai_list_index(remote->addrs, 0, &addr)) { auto link = router->outboundLink; - auto itr = router->pendingEstablishJobs.emplace( + auto itr = router->pendingEstablishJobs.insert( std::make_pair(remote->pubkey, llarp_link_establish_job())); auto job = &itr.first->second; llarp_ai_copy(&job->ai, &addr);