If a tire goes flat while you are riding and you must stop, it is usually best to:
If one of your tires goes flat, hold both handle grips firmly, ease off of the throttle, and maintain a straight course. If you must brake, gradually apply the brake of the tire that is not flat (if you are certain of which tire that is). As you slow down, edge to the side of the road, squeeze the clutch, and stop.