Fix issue #271
This commit is contained in:
parent
6988b4f8d1
commit
04af4e85ba
|
@ -241,16 +241,15 @@ public class LiveNotificationService extends Service implements NetworkStateRece
|
|||
if (ex != null) {
|
||||
if( !canStartStream.containsKey(account.getAcct()+"@"+account.getInstance()) || canStartStream.get(account.getAcct()+"@"+account.getInstance())) {
|
||||
canStartStream.put(account.getAcct()+"@"+account.getInstance(),false);
|
||||
Handler handler = new Handler();
|
||||
handler.postDelayed(new Runnable() {
|
||||
|
||||
Handler handler = new Handler(Looper.getMainLooper());
|
||||
handler.postDelayed(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
startStream(account);
|
||||
canStartStream.put(account.getAcct()+"@"+account.getInstance(),true);
|
||||
}
|
||||
|
||||
}, 15000); // 5000ms delay
|
||||
}, 15000 );
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue