mirror of
https://github.com/vacp2p/mix.git
synced 2026-01-09 02:18:02 -05:00
add error handling when destination does not support Mix Protocol
This commit is contained in:
@@ -201,6 +201,9 @@ proc anonymizeLocalProtocolSend*(
|
||||
let index = pubNodeInfoKeys.find(destPeerId)
|
||||
if index != -1:
|
||||
availableIndices.del(index)
|
||||
else:
|
||||
error "Destination does not support Mix"
|
||||
return
|
||||
|
||||
for i in 0 ..< L:
|
||||
if i == L - 1:
|
||||
|
||||
Reference in New Issue
Block a user