The principal contractor may, upon receiving the notice provided for in § 65-10-105, be relieved, if sued, by paying the sum claimed into court, which payment into court shall discharge the principal contractor from liability to the subcontractor for the amount so paid into court; and thereupon the subcontractor shall be summoned to answer the demand of the claimant, and such judgment shall be rendered thereon as the right may appear.
T.C.A. § 65-10-110