Skip to content

Commit

Permalink
call function once
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavrax committed Nov 7, 2023
1 parent 6d88ca2 commit 1ff2cb2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions qt/pubnub_qt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -534,13 +534,15 @@ pubnub_res pubnub_qt::publish(QString const& channel, QString const& message, pu
{
QMutexLocker lk(&d_mutex);
d_method = pubnubSendViaGET;
pubnub_publish_options opt_data = opt.data();

return startRequest(pbcc_publish_prep(d_context.data(),
channel.toLatin1().data(),
message.toLatin1().data(),
opt.data().store,
!opt.data().replicate,
opt.data().meta,
opt.data().method),
opt_data.store,
!opt_data.replicate,
opt_data.meta,
opt_data.method),
PBTT_PUBLISH);
}

Expand Down

0 comments on commit 1ff2cb2

Please sign in to comment.