make sure we don't freeze while waiting for a connection from melted

Signed-off-by: Tomas Neme <lacrymology@gmail.com>