1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-24 01:54:22 +00:00

Made the OSX HTTP stream respond to the return value of the open-stream callback function

This commit is contained in:
jules 2016-08-05 15:38:33 +01:00
parent 675f5943a1
commit 1a1897b43b

View file

@ -145,7 +145,8 @@ public:
while (isThreadRunning() && ! initialised)
{
if (callback != nullptr)
callback (context, (int) latestTotalBytes, (int) [[request HTTPBody] length]);
if (! callback (context, (int) latestTotalBytes, (int) [[request HTTPBody] length]))
return false;
Thread::sleep (1);
}
@ -398,7 +399,8 @@ public:
while (isThreadRunning() && ! initialised)
{
if (callback != nullptr)
callback (context, latestTotalBytes, (int) [[request HTTPBody] length]);
if (! callback (context, latestTotalBytes, (int) [[request HTTPBody] length]))
return false;
Thread::sleep (1);
}