Avoid having two rpc requests at the same time