When property taken in one county, by burglary, robbery, larceny, or embezzlement, has been brought into another, the jurisdiction of the offense is in either county. But if, before the beginning of the trial of the defendant in the latter, he be indicted or information be filed against him in the former county, the sheriff of the latter must, upon demand, deliver him to the sheriff of the former county, upon being served with a certified copy of the indictment or information, and upon a receipt indorsed thereon by the sheriff of the former county, of the delivery of the body of the defendant, and is, on filing the copy of the indictment and the receipt, exonerated from all liability in respect to the custody of the defendant.
R.L.1910, § 5616.