Section 186(b) in The Code of Criminal Procedure, 1973
(b)if the Courts are not subordinate to the same High Court, by the High Court within the local limits of whose appellate criminal jurisdiction the proceedings were first commenced, and thereupon all other proceedings in respect of that offence shall be discontinued.