Skip to content
Snippets Groups Projects
Unverified Commit fcef2ca6 authored by Davide Pianca's avatar Davide Pianca Committed by GitHub
Browse files

Merge pull request #61 from tomoakiichige/fix/client-keep-alive-always-check

Ensure keep alive check runs continuously in MQTTClient#check()
parents 7a765fc7 9b6cf5a5
Branches
Tags
No related merge requests found
......@@ -369,7 +369,8 @@ public class MQTTClient(
onDisconnected(null)
throw e
}
} else {
}
// If connack not received in a reasonable amount of time, then disconnect
val currentTime = currentTimeMillis()
val lastActive = lastActiveTimestamp.value
......@@ -399,7 +400,6 @@ public class MQTTClient(
}
}
}
}
/**
* Run a single iteration of the client (blocking)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment