Adultery

Hello sir. Need some help from your side. One of my family friends file a divorce case against his wife. In the family court on the basis of adultery. And he put me there as a third party. And he also file a adultery case in criminal court against his wife and me. But now both of them are going to sign a document in which both of them were agree to live with each other for next two years and give each other another chance. After two years of they found that they can't manage to live with each other. Then any one of them can file a divorce case again. And because of this agreement. The husband is agree to withdraw both the cases. The divorce case and the adultery case in criminal court. So I want to know Sir. That after two years can ipc and Indian law allow that guy to put a adultery case in criminal court against me. Cause a judge who is my friend told me that if he withdrawal the adultery case this time. Then according to law he never file a adultery case against me and his wife in any court. Cause he already withdraw that case once. It's that true Sir. That he can't file a adultery case again on me.