Skip to content

Commit

Permalink
Merge pull request #109 from koiNoCirculation/fix_sof_crash
Browse files Browse the repository at this point in the history
Fix sof crash
  • Loading branch information
Dream-Master authored Oct 28, 2023
2 parents ce7576e + 7db1a65 commit d8cc5f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/scala/li/cil/oc/server/network/Network.scala
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,9 @@ private class Network private(private val data: mutable.Map[String, Network.Vert
addedNode.onConnect(addedNode)
val visibleNodes = nodes.filter(_.reachability == Visibility.Network)
visibleNodes.foreach(node => connects += ((node, nodes)))
} else if(addedNode.network == oldNode.data.network) {
//well this causes stack overflow
false
}
else {
val otherNetwork = addedNode.network.asInstanceOf[Network.Wrapper].network
Expand Down

0 comments on commit d8cc5f5

Please sign in to comment.