okay but if i stop the gas and continue my salat so is my namaz accepted? thankyou

If you do not pass gas then your salat is not invalidated