If a girl refuses a hug?

It is a deal breaker, right? There's this girl I talk to a lot. We joke and tease each other and she is always smiling and making eye contact although she can be nervous and jumpy around me. A couple of days ago she was having a bad day and I tried to give her a "side hug" but she pulled away like if I was a leper or something. I have never seen hugs as a big deal, I have a lot of female friends who hug me and I don't think anything of it, what was up with that reaction? It made me feel bad and I don't know if I should just stop talking to her because obviously she is repelled by me and maybe she just talks "to be nice" which is something I hate, although she has initiated conversations on her own accord and like I said, she seems nervous but at the same time she seems to enjoy talking to me and have fun, what should I do?
If a girl refuses a hug?
Post Opinion