Skip to content

Commit

Permalink
lock fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lh70 committed Aug 21, 2024
1 parent ee0bd2b commit 8ec0d39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Modules/DTN/shared/src/main/scala/dtn/WSConnection.scala
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ class WSEndpointClient(host: String, port: Int, connection: WSConnection, val no
// examples: 200 tx mode: JSON, 200 subscribed, 200 Sent bundle dtn://global/~crdt/app1-764256828302-0 with 11 bytes
// we throw an Exception if this is not the case
println(s"received command response: $s")
lock.unlock()

if s.startsWith("200 Sent payload") then lock.unlock()

if !s.startsWith("200") then
println(
s"dtn ws command response indicated 'not successfull', further interaction with the ws will likely fail: $s"
Expand Down

0 comments on commit 8ec0d39

Please sign in to comment.