Using replaceLocalParticipant
This commit is contained in:
parent
0400c646fa
commit
e48ab979b0
@ -35,6 +35,7 @@ namespace RoboidControl {
|
|||||||
if (this.port == 0)
|
if (this.port == 0)
|
||||||
this.isIsolated = true;
|
this.isIsolated = true;
|
||||||
Participant.AddParticipant(this);
|
Participant.AddParticipant(this);
|
||||||
|
Participant.ReplaceLocalParticipant(this);
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Create a participant which will try to connect to a site.
|
/// Create a participant which will try to connect to a site.
|
||||||
@ -79,6 +80,7 @@ namespace RoboidControl {
|
|||||||
this.remoteSite = new Participant(ipAddress, port, this);
|
this.remoteSite = new Participant(ipAddress, port, this);
|
||||||
|
|
||||||
Participant.AddParticipant(this);
|
Participant.AddParticipant(this);
|
||||||
|
Participant.ReplaceLocalParticipant(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static ParticipantUDP isolatedParticipant = null;
|
private static ParticipantUDP isolatedParticipant = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user