You don't check for which sensor the message is send - message.getSensor() - and in both cases you set the relays both on Like Skywatch said.
So you could do something like:
if ( message.type == V_STATUS ) { // check if GW send a status change
if ( message.getSensor() == sensor 1 ) {
// handles sensor 1
}
else if ( message.getSensor() == sensor 2 ) {
// handles sensor 1
}
...
etc
}