]> iEval git - fonbot.git/commit
Don't call pollServer from a BroadcastRecevier
authorMarius Gavrilescu <marius@ieval.ro>
Mon, 25 Mar 2013 06:59:00 +0000 (08:59 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Mon, 25 Mar 2013 06:59:00 +0000 (08:59 +0200)
commit6b9507db27500572e4366b3f23eefeea079a9d8f
tree8051afb4515862ae2bf54e6eecd509fc8e9020f3
parentb26f32d6098549c204dba44f353e10fe30a29781
Don't call pollServer from a BroadcastRecevier

LocalBroadcastRecevier and DynamicBroadcastRecevier used to call pollServer directly. Thus, processCommand was called from a BroadcastRecevier context, which broke some commands (e.g. SPEAK). Now, they call a new function, safePollServer, which calls pollServer from FonBotMainService.
src/ro/ieval/fonbot/DynamicEventReceiver.java
src/ro/ieval/fonbot/FonBotMainService.java
src/ro/ieval/fonbot/LocalBroadcastReceiver.java
src/ro/ieval/fonbot/Utils.java
This page took 0.031705 seconds and 4 git commands to generate.