Skip to content

Commit

Permalink
Set setDaemon on NewThreadScheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
akarnokd committed Feb 6, 2014
1 parent a797c56 commit 3c244fb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ public class NewThreadScheduler extends Scheduler {

@Override
public Thread newThread(Runnable r) {
return new Thread(r, "RxNewThreadScheduler-" + count.incrementAndGet());
Thread t = new Thread(r, "RxNewThreadScheduler-" + count.incrementAndGet());
t.setDaemon(true);
return t;
}
};

Expand Down

0 comments on commit 3c244fb

Please sign in to comment.