dont save addrmap on android as it hangs

This commit is contained in:
Jeff Becker 2021-09-01 12:07:10 -04:00
parent c0b8c87f81
commit a4a9062f12
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
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();