Avoid creating the same threads more than once. Merged your both the threads.