Minecraft wiki entry for Fishing, associated text: If the player wanders more than 32 blocks away from the bobber, or if the player stops holding a fishing rod, the bobber and fishing line disappear with no durability reduction to the rod.