If it continues to operate then you have corrected the problem. If it happens again, take it to a motor repair shop. If it is the centrifugal switch you can't fix it yourself.
You did not mention what size motor it is. If it's small, a new motor may be cheaper than a motor shop. If it's a special motor (non-Nema) then you need the motor shop or manufacturer.