
A fan had a medical emergency and the game was stopped for about half an hour.
The visitors were up 2-0 with less than 10 minutes to go.
The players were taken off before Ledesma threw the medical kit into the stands.
When play resumed, Barcelona moved top of the table with a fourth successive win.
Robert Lewandowski slid in the visitors' second shortly after his introduction as a substitute, after Frenkie de Dutch swept in the opener for Barcelona.
Since moving to Poland, the forward has scored nine goals.
Ansu Fati and Ousmane Dembele both scored a third and a fourth.
Real Madrid will play Mallorca on Sunday in a game that will move them a point above their rivals.
Barcelona have scored 15 times and only allowed one.