He thinks about Hermione, and thinks how having a wank would pass some time - but that's begun eluding him again, too. That's probably an unfortunate combination of mounting stress and the absolute abundance of shagging they're doing already, so he can't be too dismayed. He'd rather have the real thing anyhow.