Fixing Windows build by removing shutdown event logging

Reviewed By: genevievehelsel

Differential Revision: D19863374

fbshipit-source-id: cf74e323d2e49c8bf9459d585343ba65112dbf55
This commit is contained in:
Puneet Kaushik 2020-02-18 16:46:26 -08:00 committed by Facebook Github Bot
parent 69435b554a
commit b6af823950

View File

@ -760,6 +760,7 @@ void EdenServer::performCleanup() {
while (!shutdownFuture.isReady()) {
mainEventBase_->loopOnce();
}
#ifndef _WIN32
std::move(shutdownFuture)
.thenTry([shutdown,
takeover,
@ -771,6 +772,9 @@ void EdenServer::performCleanup() {
shutdownTimeInSeconds, takeover, !result.hasException()});
})
.get();
#else
std::move(shutdownFuture).get();
#endif
// Explicitly close the LocalStore
// Since we have a shared_ptr to it, other parts of the code can theoretically