266. Where a ship is detained in pursuance of any provision of this Act which provides for the detention of a ship until a certain event occurs, sub-section (2) of section 204 shall apply as if the ship had been finally detained within the meaning of that sub-section. *Cost of detaining ship.*