Skip to content

Commit 9cb2f16

Browse files
Updated bool operator to properly represent object validity instead of logical validity.
1 parent 0ff69e2 commit 9cb2f16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/mqtt/MqttClient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ namespace Aws
189189

190190
MqttConnection::operator bool() const noexcept
191191
{
192-
return m_connectionState != ConnectionState::Error;
192+
return m_underlyingConnection != nullptr;
193193
}
194194

195195
int MqttConnection::LastError() const noexcept

0 commit comments

Comments
 (0)