Skip to content

Commit 663f323

Browse files
committed
Bug in channel isPrivate().
1 parent d1eb995 commit 663f323

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

websocket-rails-client/channel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ void Channel::setCallbacks(map_vec_cb_func callbacks) {
123123

124124

125125
bool Channel::isPrivate() {
126-
return this->isPrivate();
126+
return this->is_private;
127127
}
128128

129129

websocket-rails-client/websocket_rails.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ bool WebsocketRails::connectionStale() {
318318

319319
std::vector<Channel> WebsocketRails::reconnectChannels() {
320320
std::vector<Channel> results;
321-
for (auto& x: this->channel_queue) {
321+
for(auto& x: this->channel_queue) {
322322
Channel channel = x.second;
323323
map_vec_cb_func callbacks = channel.getCallbacks();
324324
channel.destroy();

0 commit comments

Comments
 (0)