Character mistake: At the end, Vala and Mitchell establish a wormhole and let Teal'c and Jackson know. Almost a minute passes before Teal'c and Jackson get back to the gate and Jackson yells "run" because they need to get through the gate right away. Obviously they're detained, but after being let go, Mitchell says they're sending the iris code now. This is something that should have been done sooner, especially after hearing gunfire, so they could be ready to go through when Teal'c and Jackson arrived.
Suggested correction: OR... after hearing the gunfire maybe it was smarter to wait until they verified that it was Teal'c and Jackson who prevailed. Otherwise, they risked leaving the gate open to a hostile force.
Perhaps they waited, but they still would have sent it when they saw them, which the didn't. And they've never waited like that before.