A marine insurer is liable for all the expense attendant upon a loss which forces the ship into port to be repaired. Where it is agreed that the insured may labor for the recovery of the property, the insurer is liable for the expense incurred thereby. In either case, the liability for such expense is in addition to the liability for a subsequent total loss.
Ca. Ins. Code § 1994