-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correct lifetime of outstanding open-file request.
Previously, the presence of a pointer in m_file indicated an open- file request was outstanding. However, after the file was opened, the unique_ptr was moved to the Source object (which does a synchronous network query in its constructor). Hence, it appeared there was no outstanding file-open and a second one could start. Now, we keep a separate boolean flag that is only set to false when the HandleResponse method exits.
- Loading branch information
Showing
2 changed files
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters