main: directly trigger any peer after communication startup

This commit is contained in:
Thomas Schoebel-Theuer 2019-11-22 11:01:07 +01:00
parent ffa80b0973
commit 50de5e6882

View File

@ -2729,6 +2729,10 @@ int _make_peer(struct mars_global *global, struct mars_dent *dent)
INIT_LIST_HEAD(&peer->peer_head);
INIT_LIST_HEAD(&peer->remote_dent_list);
/* always trigger on peer startup */
peer->from_remote_trigger = true;
peer->to_remote_trigger = true;
down_write(&peer_lock);
list_add_tail(&peer->peer_head, &peer_anchor);
peer_count++;