succeededToConnect method

void succeededToConnect()

mark as succeded to connect

Implementation

void succeededToConnect() {
  lastSuccessfulConnect = DateTime.now().millisecondsSinceEpoch ~/ 1000;
  connecting = false;
}