Skip to content

Commit

Permalink
Dont start asynctask from a background thread
Browse files Browse the repository at this point in the history
  • Loading branch information
markwinter committed Jul 24, 2014
1 parent 7f6cd2f commit a6f1eba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/src/main/java/im/tox/antox/tox/ToxDoService.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ public ToxDoService() {

@Override
public void onCreate() {
if(!toxSingleton.isInited)
toxSingleton.initTox(getApplicationContext());

Runnable start = new Runnable() {
@Override
public void run() {
if(!toxSingleton.isInited)
toxSingleton.initTox(getApplicationContext());

final DoTox doTox = new DoTox();
toxScheduleTaskExecutor.scheduleAtFixedRate(doTox, 0, 50, TimeUnit.MILLISECONDS);
}
Expand Down

0 comments on commit a6f1eba

Please sign in to comment.