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:
parent
675f5943a1
commit
1a1897b43b
1 changed files with 4 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue