X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=src%2Fro%2Fieval%2Ffonbot%2FLocalBroadcastReceiver.java;h=2aade7fac5755300213b04fb3693f7e99d4f6f1f;hb=e154bdfd76071b99635317ef8c7ab11918b88794;hp=6605e3de5bb2d58beb4a6d70170cedcc5e47e0f8;hpb=8dfb76c9431dbf8401412cb92c7512e7dc3081a2;p=fonbot.git diff --git a/src/ro/ieval/fonbot/LocalBroadcastReceiver.java b/src/ro/ieval/fonbot/LocalBroadcastReceiver.java index 6605e3d..2aade7f 100644 --- a/src/ro/ieval/fonbot/LocalBroadcastReceiver.java +++ b/src/ro/ieval/fonbot/LocalBroadcastReceiver.java @@ -38,12 +38,12 @@ public final class LocalBroadcastReceiver extends BroadcastReceiver { @Override public void onReceive(final @Nullable Context context, final @Nullable Intent intent) { - if(intent==null) + if(context==null || intent==null) return; final String action=intent.getAction(); if(action.equals(LocalBroadcastReceiver.ACTION_POLL_ALARM)) - new PollServerAsyncTask().execute(); + Utils.pollServer(context); } }