relay: fix major bug where networking was done on the wrong thread

* this has to be the biggest facepalm ever - how did I not notice this before this point