1
0
Fork 0
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:
Lukasz Kozakiewicz 2017-12-28 17:58:43 +01:00
parent 8e28a68bd0
commit ef482e6c37

View file

@ -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]
{