If you have not married the second man who is responsible for the pregnancy, then this is considered adultery.
You will have difficult times with your case because you have already committed adultery. Your new husband will be in more trouble if he goes through the ceremony of marriage with you before the completion of the divorce case.
Whether the case will succeed or not, it is ideal to complete your divorce case first before engaging with another man or wife.
You need to read the Marriage Act to understand the circumstances under which a divorce case can be dismissed.