bug fix: when updating neighbour's priority, do serve pending request
 before serve pending request, should set task's state to READY
 if there is no pending request, switch back task state to IN_QUEUE