Skip to content

Commit

Permalink
fix compile errors in session
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaSemple committed Jun 15, 2022
1 parent 658d51f commit ff10c70
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/cpp/session/SessionActiveSessionsStorage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ InvokeRpc getSessionRpcInvoker()
Error activeSessionsStorage(std::shared_ptr<IActiveSessionsStorage>* pStorage)
{
FilePath storagePath = options().userScratchPath();

#ifdef _WIN32
pStorage->reset(new FileActiveSessionsStorage(storagePath));
#else
if (options().sessionUseFileStorage())
pStorage->reset(new FileActiveSessionsStorage(storagePath));
else
Expand All @@ -55,6 +59,7 @@ Error activeSessionsStorage(std::shared_ptr<IActiveSessionsStorage>* pStorage)
storagePath,
getSessionRpcInvoker()));
}
#endif

return Success();
}
Expand Down

0 comments on commit ff10c70

Please sign in to comment.