Man caught watching porn on VR headset in public library