But excessive swelling that persists for several hours after you resume activity may be due to a more serious condition, such as a blood clot in the leg (deep vein thrombosis) ??? especially if the swelling occurs in only one leg and is accompanied by leg pain.