fix: return error on Dart stream cancellation instead of Ok(0)

This commit is contained in:
Forte11Cuba
2026-03-29 14:07:45 -06:00
parent b28a529ffc
commit bb942ef72c
+1 -1
View File
@@ -499,7 +499,7 @@ async fn wait_for_nostr_payment_inner(
{
// Dart side cancelled the stream, clean up
client.disconnect().await;
return Ok(Amount::ZERO);
return Err(Error::Network("Listener cancelled by client".to_string()));
}
}
}