mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-14 01:39:36 -04:00
Check the channel is set before submitting it to the TCPNotifier
This commit is contained in:
parent
af2db43c53
commit
59fac9b4b6
@ -246,6 +246,7 @@ object InternetCard {
|
|||||||
private val id = UUID.randomUUID()
|
private val id = UUID.randomUUID()
|
||||||
|
|
||||||
private def setupSelector() {
|
private def setupSelector() {
|
||||||
|
if (channel == null) return
|
||||||
TCPNotifier.add((channel, () => {
|
TCPNotifier.add((channel, () => {
|
||||||
owner match {
|
owner match {
|
||||||
case Some(internetCard) =>
|
case Some(internetCard) =>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user