Complex sentence: Security managed to keep them at bay and to relieve the potentially riotous situation, the band played the entire set for a second time.
Split into simpler sentences: Security managed to keep the audience at bay and relieved the potentially riotous situation. The band played the entire set for a second time.