[core] all requests have to be canceled explicitly now

By not automatically destroying Request objects after the result has been delivered, we are making sure that we can potentially fire the callback multiple times without adverse effects. This means that you have to hold on to the result of fs->request(), can explicitly cancel it if you don't want to be notified of data changes anymore. Not doing so will monitor the request indefinitely and will prevent the app from exiting.
This commit is contained in:
Konstantin Käfer
2015-10-15 15:10:41 +02:00
parent 5406048a57
commit 94a5ac857f
22 changed files with 94 additions and 43 deletions

View File

@@ -133,7 +133,6 @@ void NodeFileSource::notify(const mbgl::Resource& resource, const std::shared_pt
}
observersIt->second->notify(response);
observers.erase(observersIt);
}
}