In order to stop your pastry from going soggy, you need to limit the moisture content. Firstly, pat the salmon dry before wrapping it in the pastry. Secondly, make small cuts in the top of the pastry to allow the steam to escape when cooking.