Skip to content

Commit af379ca

Browse files
don't throw here
1 parent 22aa6d0 commit af379ca

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mesh/core/src/main/java/no/nordicsemi/kotlin/mesh/core/MeshNetworkManager.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,10 +1084,11 @@ class MeshNetworkManager(
10841084
* @throws IllegalStateException This method throws when the mesh network has not been created.
10851085
*/
10861086
@Throws(NoNetwork::class, IllegalStateException::class)
1087-
suspend fun send(message: ProxyConfigurationMessage): ProxyConfigurationMessage =
1087+
suspend fun send(message: ProxyConfigurationMessage): ProxyConfigurationMessage? =
10881088
networkManager?.send(message) ?: run {
10891089
logger?.e(category = LogCategory.PROXY) { "Error: Mesh Network not created" }
1090-
throw NoNetwork()
1090+
return null
1091+
//throw NoNetwork()
10911092
}
10921093

10931094
/**

0 commit comments

Comments
 (0)