Skip to content

Commit

Permalink
Revert "More concise test"
Browse files Browse the repository at this point in the history
This reverts commit 25984b3.
  • Loading branch information
heplesser committed Dec 11, 2023
1 parent c43a12c commit 7c980d0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nestkernel/connector_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,11 @@ class Connector : public ConnectorBase
if ( not conn.is_disabled() )
{
// Some synapses, e.g., bernoulli_synapse, may not send an event after all
conn.send( e, tid, cp ) and send_weight_event( tid, lcid + lcid_offset, e, cp );
const bool event_sent = conn.send( e, tid, cp );
if ( event_sent )
{
send_weight_event( tid, lcid + lcid_offset, e, cp );
}
}
if ( not conn.source_has_more_targets() )
{
Expand Down

0 comments on commit 7c980d0

Please sign in to comment.