Bray's exit from this year's FAI Cup may not have been unexpected, but they gave St Patricks Athletic a real fright before two second half goals sealed the home victory.
Bray's half-time lead belied the advantage the home side had during the 45 minutes in both possession and chances, but the Bray defence had snuffed out most of the latter, with a couple of assists from the woodwork.
That said, the Seagulls didn't look outclassed in their first competitive outing against Premier opposition since their League Cup victory over Shamrock Rovers in April.
And a couple of real chances for the visitors showed up potential weaknesses in their hosts.
But it was a comedy of errors that sent the Saints into the dressing room a goal behind, when Dylan McGlade's well-placed free drew a fingertip touch from Brendan Clarke that only pushed the ball on to the crossbar and high in the air.
Clarke seems to have been convinced it was gone behind, and in any case his save had left him on the ground as Bray's Dean Williams and John Martin found themselves alone, almost on the line, when the ball came down, with only the slightest of touches needed to send it home.
The second half was different, in the sense that while Bray seemed buoyed by their lead, it was the home side that found the net, first through former Seagull Dave Webster and then substitute Glen McAuley.
The game was played at high pace from start to finish, and Pats looked a little out of sorts when their efforts to add an insurance goal were constantly frustrated.
But the single score margin proved enough in the end, though the Wanderers were a trifle unlucky not to have forced Extra Time.
Mícheál Ó hUanacháin
Bray Wanderers: 1 Gabriel Sava; 4 Killian Cantwell, 2 Hugh Douglas, 5 Seán Heaney , 11 Derek Daly; 8 Philip Gannon, 19 Brandon McCann, 6 Paul Keegan (c) , 10 Dylan McGlade; 12 John Martin, 18 Dean Williams