Opinion by
Smith, J.,The plaintiff’s claim is for drawing goods for the defendant from the railroad station and for freight paid thereon to the railroad company. The defense set up is that the claim is barred because it should have been presented as a set-off in á former suit wherein the defendant’s assignee sued the plaintiff on a book account and recovered judgment before a justice of the peace, from which no appeal was taken. The court instructed the jury that the question whether the former action was a bar to the present one was purely a question of law with which they had nothing to do, and it would be reserved for determination by the court. They were directed to consider the matters of fact relating to the former suit in order to ascertain whether the plaintiff had received credit in that proceeding for any of the matters embraced .in the present demand. If they should find there was anything due the plaintiff to render a verdict therefor; otherwise to find for the defendant. Under these instructions the jury found for the plaintiff, and hence this appeal.
It is practically undisputed that at the first trial the plaintiff’s claim was referred to, but the freight bills from which it could be made up were not present, and the defendant’s assignee, in whose favor that suit was brought, then said that any freight bills which it could be shown had not been paid or had not been credited on the account then sued for, would be properly credited by the justice, even after judgment. It is reasonably certain that the appellee’s claim was not submitted to the justice, in the first suit, as a set-off or otherwise, and it was not adjudicated in that proceeding. Judgment was entered for all of the plaintiff’s demand in that case on the day it was heard. It is not denied that the appellee brought the freight bills, within *103twenty days of the hearing, and left them with the justice, expecting to get credit for them. He then paid the costs of record and heard no more about the matter until an execution was issued on the judgment, some six months thereafter. This he also paid.
From the foregoing it is argued that the appellant is estopped from setting up as a bar to this action the provisions of the 7th section of the act of 1810, which is as follows : “ A defendant who shall neglect or refuse in any case to set off his demand .... against a plaintiff ..... before a justice of the peace, shall be and is hereby forever barred from recovering against the party plaintiff, by any after suit.” An examination of the record presented here fails to disclose any reference whatever to this prohibition of the act or to any future action or to a waiver of any description. The most that was said with reference to the claim of the appellee was that whatever might thereafter appear tp be due would be credited on the former judgment; not that a suit or an action of any kind might be subsequently brought. There was no waiver of this section, either express or implied. Provision for the contemplated exigency Avas then and there made, to Avit: credit on the judgment then obtained. This explicit stipulation precluded any conflicting implication. The laAV expressly prohibited a countersuit, and credit on the judgment was agreed on as the remaining right of the appellee. This was in no sense a waiver of the act of 1810. An agreement for credit on an existing obligation cannot be construed as a waiver of an imperative statute having no necessary relation to the subject. The agreement, however, afforded the appellee an adequate remedy. If, instead of paying the execution, he had applied to the court for relief, that tribunal would, no doubt, have applied the proper credits in satisfaction of the judgment, in accordance with the agreement. This he failed to do. He now seeks a relief from his own mistake or default which can be given only by a direct disregard of an' express statutory provision. This provision is salutary and beneficial; it tends to discourage needless litigation and expense, chiefly in the minor affairs of business life, and can work no hardship except where parties disregard its mandate, Avith indifferent or insufficient provision for the consequences.
The judgment is reversed.