Merge pull request #1727 from majestrate/android-hang-fix-2021-09-01

dont save addrmap on android as it hangs
This commit is contained in:
Jeff 2021-09-01 16:23:17 -04:00 committed by GitHub
commit 060c571060
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -974,6 +974,7 @@ namespace llarp
TunEndpoint::Stop()
{
// save address map if applicable
#ifndef ANDROID
if (m_PersistAddrMapFile)
{
const auto& file = *m_PersistAddrMapFile;
@ -994,6 +995,7 @@ namespace llarp
maybe->write(data.data(), data.size());
}
}
#endif
if (m_Resolver)
m_Resolver->Stop();
return llarp::service::Endpoint::Stop();