If it happens again, I would pull the carb and clean it. People let old gas sit in carbs for months and even years, then claim carbs are unreliable. If kept clean, which isn't that hard, they are completely reliable. But you never know how a previous owner treated a used bike.
2016 Rebel, 2013 Royal Enfield B5, 2009 Genuine Stella, 2006 H-D Sportster 1200, 2006 Vespa GT200, 2001 Yamaha XT225
"I refuse to believe in a risk free society where the thrill of living is traded for the safety of existence." ó Nick Ienatsch