server: fix timer leak

@xiangli-cmu @bmizerany
Sorry to jump in, but wondering why a `timer` here instead of a `ticker` outside of the loop?