Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[core] ensure network::Reachable is called only once
Browse files Browse the repository at this point in the history
  • Loading branch information
ivovandongen committed Sep 22, 2016
1 parent 4a41e34 commit aece538
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mbgl/storage/network_status.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ NetworkStatus::Status NetworkStatus::Get() {
}

void NetworkStatus::Set(Status status) {
if (status == Status::Online) {
if (status == Status::Offline) {
online = false;
} else if(!online) {
online = true;
Reachable();
} else {
online = false;
}
}

Expand Down

0 comments on commit aece538

Please sign in to comment.