mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-14 09:37:36 -05:00
Merge branch 'master' into #66_remove_loggers_and_recorders_between_channel_restarts
This commit is contained in:
@@ -243,9 +243,18 @@ public class IcecastTCPAudioBroadcaster extends IcecastAudioBroadcaster
|
|||||||
{
|
{
|
||||||
if(cause instanceof IOException && ((IOException)cause).getMessage().startsWith("Connection reset"))
|
if(cause instanceof IOException && ((IOException)cause).getMessage().startsWith("Connection reset"))
|
||||||
{
|
{
|
||||||
mLog.info("Streaming connection reset by remote server - reestablishing connection");
|
IOException ioe = (IOException)cause;
|
||||||
disconnect();
|
|
||||||
connect();
|
if(ioe.getMessage() != null && ioe.getMessage().startsWith("Connection reset"))
|
||||||
|
{
|
||||||
|
mLog.info("Streaming connection reset by remote server - reestablishing connection");
|
||||||
|
disconnect();
|
||||||
|
connect();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
mLog.error("IO Exception", ioe);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -244,9 +244,18 @@ public class ShoutcastV1AudioBroadcaster extends AudioBroadcaster
|
|||||||
{
|
{
|
||||||
if(cause instanceof IOException && ((IOException)cause).getMessage().startsWith("Connection reset"))
|
if(cause instanceof IOException && ((IOException)cause).getMessage().startsWith("Connection reset"))
|
||||||
{
|
{
|
||||||
mLog.info("Streaming connection reset by remote server - reestablishing connection");
|
IOException ioe = (IOException)cause;
|
||||||
disconnect();
|
|
||||||
connect();
|
if(ioe.getMessage() != null && ioe.getMessage().startsWith("Connection reset"))
|
||||||
|
{
|
||||||
|
mLog.info("Streaming connection reset by remote server - reestablishing connection");
|
||||||
|
disconnect();
|
||||||
|
connect();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
mLog.error("IO Exception", ioe);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -370,9 +370,18 @@ public class ShoutcastV2AudioBroadcaster extends AudioBroadcaster implements IBr
|
|||||||
{
|
{
|
||||||
if(cause instanceof IOException && ((IOException)cause).getMessage().startsWith("Connection reset"))
|
if(cause instanceof IOException && ((IOException)cause).getMessage().startsWith("Connection reset"))
|
||||||
{
|
{
|
||||||
mLog.info("Streaming connection reset by remote server - reestablishing connection");
|
IOException ioe = (IOException)cause;
|
||||||
disconnect();
|
|
||||||
connect();
|
if(ioe.getMessage() != null && ioe.getMessage().startsWith("Connection reset"))
|
||||||
|
{
|
||||||
|
mLog.info("Streaming connection reset by remote server - reestablishing connection");
|
||||||
|
disconnect();
|
||||||
|
connect();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
mLog.error("IO Exception", ioe);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user