Guessing here but if one race captures the ship, the other one might continue the boarding action against the new owner. I'm not at home at the moment so I can't check the code. I also suspect that if that happens, the military unit that captured the ship will defend it against the other boarding attempt.