Dont start a new query thread before the last one finished