Gasoline has a very inelastic demand curve.
Nowadays, when the supply of gas goes down a bit the price goes up and people carpool a bit more, don't drive to far away stores when there's a nearby store that's almost as good, and drive a bit more slowley. And it does really bring supply and demand into equilibrium - we didn't see huge lines outside our gas stations when Libya had its civil war.
Demand for gas is indeed fairly inelastic, but that just means that the price swings much farther due to a change in supply than, say, the price of a diamond ring does. It would have to be perfectly inelastic for no adjustment to occur.