restore max code - since timeout is unsigned