Skip to content

Commit

Permalink
http(s)stream - reduce 1 second to 500ms
Browse files Browse the repository at this point in the history
this is a compromise between ancient 1 second and the 500ms which was previously only active if remote fallback receiver was enabled
remotechannelstreamconverter streams for example also had issue with no sleep that sometimes a zap was not successful.
  • Loading branch information
arn354 committed Feb 17, 2018
1 parent 01b2d5f commit e07c40d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/base/httpsstream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ int eHttpsStream::open(const char *url)
void eHttpsStream::thread()
{
hasStarted();
sleep(1);
usleep(500000); // wait half a second in general as not only fallback receiver needs this.
std::string currenturl, newurl;
currenturl = streamUrl;
for (unsigned int i = 0; i < 5; i++)
Expand Down
2 changes: 1 addition & 1 deletion lib/base/httpstream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ int eHttpStream::open(const char *url)
void eHttpStream::thread()
{
hasStarted();
sleep(1);
usleep(500000); // wait half a second in general as not only fallback receiver needs this.
std::string currenturl, newurl;
currenturl = streamUrl;
for (unsigned int i = 0; i < 5; i++)
Expand Down

0 comments on commit e07c40d

Please sign in to comment.