Skip to content

Commit

Permalink
Fixed return type of ClientPrivate::autoReconnectInterval()
Browse files Browse the repository at this point in the history
The incorrect type was causing Client::autoReconenctInterval() to
return 1 instead of the actual interval value.
  • Loading branch information
rokm committed Jun 11, 2018
1 parent 8b76ad6 commit a0b311f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mqtt/qmqtt_client_p.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ void QMQTT::ClientPrivate::setAutoReconnect(const bool autoReconnect)
_network->setAutoReconnect(autoReconnect);
}

bool QMQTT::ClientPrivate::autoReconnectInterval() const
int QMQTT::ClientPrivate::autoReconnectInterval() const
{
return _network->autoReconnectInterval();
}
Expand Down
2 changes: 1 addition & 1 deletion src/mqtt/qmqtt_client_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class ClientPrivate
void handlePingresp();
bool autoReconnect() const;
void setAutoReconnect(const bool autoReconnect);
bool autoReconnectInterval() const;
int autoReconnectInterval() const;
void setAutoReconnectInterval(const int autoReconnectInterval);
bool isConnectedToHost() const;
QMQTT::ConnectionState connectionState() const;
Expand Down

0 comments on commit a0b311f

Please sign in to comment.