Merge pull request #109 from koiNoCirculation/fix_sof_crash

Fix sof crash
This commit is contained in:
Martin Robertz 2023-10-28 14:32:39 +02:00 committed by GitHub
commit d8cc5f586d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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