Snap for 4531101 from 0473e36cba6f27de1310a9a2f1c21d489b6226f4 to pi-release
Change-Id: Ic13952165d5011737abd9ff11ef6baf70459c530
diff --git a/update_attempter_android.cc b/update_attempter_android.cc
index 82e3855..99c941e 100644
--- a/update_attempter_android.cc
+++ b/update_attempter_android.cc
@@ -481,6 +481,12 @@
SetStatusAndNotify(new_status);
ongoing_update_ = false;
+ // The network id is only applicable to one download attempt and once it's
+ // done the network id should not be re-used anymore.
+ if (!network_selector_->SetProcessNetwork(kDefaultNetworkId)) {
+ LOG(WARNING) << "Unable to unbind network.";
+ }
+
for (auto observer : daemon_state_->service_observers())
observer->SendPayloadApplicationComplete(error_code);