forked from OpenGamers/abaddon
try to fix compile again
This commit is contained in:
@@ -478,10 +478,11 @@ void DiscordClient::SendChatMessageAttachments(const ChatSubmitParams ¶ms, c
|
|||||||
auto req = m_http.CreateRequest(http::REQUEST_POST, "/channels/" + std::to_string(params.ChannelID) + "/messages");
|
auto req = m_http.CreateRequest(http::REQUEST_POST, "/channels/" + std::to_string(params.ChannelID) + "/messages");
|
||||||
req.set_progress_callback([this, nonce](curl_off_t ultotal, curl_off_t ulnow) {
|
req.set_progress_callback([this, nonce](curl_off_t ultotal, curl_off_t ulnow) {
|
||||||
m_generic_mutex.lock();
|
m_generic_mutex.lock();
|
||||||
m_generic_queue.push(sigc::bind(
|
m_generic_queue.push([this, nonce, ultotal, ulnow] {
|
||||||
sigc::mem_fun(m_signal_message_progress, type_signal_message_progress::emit),
|
m_signal_message_progress.emit(
|
||||||
nonce,
|
nonce,
|
||||||
static_cast<float>(ulnow) / static_cast<float>(ultotal)));
|
static_cast<float>(ulnow) / static_cast<float>(ultotal));
|
||||||
|
});
|
||||||
m_generic_dispatch.emit();
|
m_generic_dispatch.emit();
|
||||||
m_generic_mutex.unlock();
|
m_generic_mutex.unlock();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user