Skip to content

Instantly share code, notes, and snippets.

@chuchao333
Created March 31, 2020 20:20
Show Gist options
  • Save chuchao333/920aa6c90697ea0f06ca24939aed67f0 to your computer and use it in GitHub Desktop.
Save chuchao333/920aa6c90697ea0f06ca24939aed67f0 to your computer and use it in GitHub Desktop.
curator-525-potential-fix
void validateConnection(KeeperState sate, bool fromCodeToState) {
  ...
  else if (state == Watcher.Event.KeeperState.Expired)
{
if (fromCodeToState && client.isConnected())
// ignore
else
// fire a LOST as it is now      
connectionStateManager.addStateChange(ConnectionState.LOST);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment