diff --git a/Modules/DTN/shared/src/main/scala/dtn/routing/RdtRouter.scala b/Modules/DTN/shared/src/main/scala/dtn/routing/RdtRouter.scala index 27bc4fd6f..461404e92 100644 --- a/Modules/DTN/shared/src/main/scala/dtn/routing/RdtRouter.scala +++ b/Modules/DTN/shared/src/main/scala/dtn/routing/RdtRouter.scala @@ -86,7 +86,7 @@ class RdtRouter(ws: WSEroutingClient, monitoringClient: MonitoringClientInterfac println(s"received sender-request for bundle: ${packet.bp}") // we only route rdt packets rn - if !tempRdtMetaInfoStore.contains(packet.bp.id) then { + if !tempRdtMetaInfoStore.containsKey(packet.bp.id) then { println(s"bundle meta information for bundle-id ${packet.bp.id} are not available. not routing rn.") return Option(Packet.ResponseSenderForBundle(bp = packet.bp, clas = List(), delete_afterwards = false)) } diff --git a/Modules/DTN/shared/src/main/scala/dtn/routing/RdtRouter2.scala b/Modules/DTN/shared/src/main/scala/dtn/routing/RdtRouter2.scala index bcac0a214..8b1ebc0e7 100644 --- a/Modules/DTN/shared/src/main/scala/dtn/routing/RdtRouter2.scala +++ b/Modules/DTN/shared/src/main/scala/dtn/routing/RdtRouter2.scala @@ -58,7 +58,7 @@ class RdtRouter2(ws: WSEroutingClient, monitoringClient: MonitoringClientInterfa println(s"received sender-request for bundle: ${packet.bp}") // we only route rdt packets rn - if !tempRdtMetaInfoStore.contains(packet.bp.id) then { + if !tempRdtMetaInfoStore.containsKey(packet.bp.id) then { println(s"no bundle meta information available for bundle-id ${packet.bp.id}. not routing.") return Option(Packet.ResponseSenderForBundle(bp = packet.bp, clas = List(), delete_afterwards = false)) }