Check the channel is set before submitting it to the TCPNotifier

This commit is contained in:
Fingercomp 2020-06-08 16:22:57 +07:00 committed by payonel
parent af2db43c53
commit 59fac9b4b6

View File

@ -246,6 +246,7 @@ object InternetCard {
private val id = UUID.randomUUID()
private def setupSelector() {
if (channel == null) return
TCPNotifier.add((channel, () => {
owner match {
case Some(internetCard) =>