Commit 49f878b2 authored by Adrien Dorsaz's avatar Adrien Dorsaz

client: rename lookfor_webSocketURI private method.

parent 98f55220
#pragma once
#include <future>
#include <memory>
#include <libsoup/soup.h>
#include <libxml++/libxml++.h>
......@@ -21,7 +22,7 @@ namespace Xmpp {
xmlpp::DomParser _dom_parser;
void lookfor_webSocketURI();
void webSocketURI();
public:
Client(Account _account, IHttpClient *httpClient);
~Client();
......
#include <future>
#include "xmpp/Client.hpp"
Xmpp::Client::Client(Account account, IHttpClient *httpClient)
......@@ -7,7 +6,7 @@ Xmpp::Client::Client(Account account, IHttpClient *httpClient)
{
_webSocketURI = account.webSocketURI();
if (!account.webSocketURI()) {
auto websocketFuture = std::async(&Xmpp::Client::lookfor_webSocketURI, this);
auto websocketFuture = std::async(&Xmpp::Client::webSocketURI, this);
websocketFuture.get();
}
......@@ -27,7 +26,7 @@ Xmpp::Client::connect()
}
void
Xmpp::Client::lookfor_webSocketURI()
Xmpp::Client::webSocketURI()
{
SoupMessage* message;
SoupURI* hostMetaURI = _account.hostMetaURI();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment