mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Android: handle case when we don’t receive file open events while sharing.
This commit is contained in:
parent
8e28a68bd0
commit
ef482e6c37
1 changed files with 2 additions and 1 deletions
|
|
@ -158,7 +158,8 @@ public:
|
|||
{
|
||||
--numOpenedHandles;
|
||||
|
||||
if (fileWasRead && numOpenedHandles == 0)
|
||||
// numOpenedHandles may get negative if we don't receive open handle event.
|
||||
if (fileWasRead && numOpenedHandles <= 0)
|
||||
{
|
||||
MessageManager::callAsync ([this]
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue