Skip to content

Commit

Permalink
Merge pull request #824 from akarnokd/NewThreadSchedulerToDaemon
Browse files Browse the repository at this point in the history
Set setDaemon on NewThreadScheduler
  • Loading branch information
benjchristensen committed Feb 6, 2014
2 parents def4484 + 3c244fb commit e0f970c
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 e0f970c

Please sign in to comment.