From b79bd701400fb8bf8a845f8a24d78e82f182bb2f Mon Sep 17 00:00:00 2001 From: JellyBrick Date: Sat, 26 May 2018 17:46:51 +0900 Subject: Improve performance --- include/tgbot/net/TgWebhookLocalServer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/tgbot/net/TgWebhookLocalServer.h') diff --git a/include/tgbot/net/TgWebhookLocalServer.h b/include/tgbot/net/TgWebhookLocalServer.h index 67268f5..99a0fba 100644 --- a/include/tgbot/net/TgWebhookLocalServer.h +++ b/include/tgbot/net/TgWebhookLocalServer.h @@ -39,7 +39,7 @@ public: TgWebhookLocalServer(std::shared_ptr>& acceptor, const std::string& path, EventHandler* eventHandler) = delete; TgWebhookLocalServer(const std::string& path, const EventHandler* eventHandler) : - TgWebhookServer(std::shared_ptr>(new boost::asio::local::stream_protocol::acceptor(_ioService, boost::asio::local::stream_protocol::endpoint(path))), path, eventHandler) + TgWebhookServer(std::make_shared>(_ioService, boost::asio::local::stream_protocol::endpoint(path)), path, eventHandler) { } -- cgit v1.2.3