Vaginal Mucus

I just had sex for the first time in 5 months, and now Inbetween my periods I just got discharge and it's bloody. we used a condom and he didn't even come close to me, and minutes away. I get my period in two days. what's it mean??