Changeset 13943 for branches/thasling/DistributedGA/DistributedGA.Core/Implementation/WcfPeerListManager.cs
- Timestamp:
- 06/28/16 17:03:36 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/thasling/DistributedGA/DistributedGA.Core/Implementation/WcfPeerListManager.cs
r13937 r13943 15 15 16 16 private Timer timer = null; //sends heartbeat to contact-server 17 18 private Object timerLock = new Object(); 17 19 18 20 private ChannelFactory<IContactService> myChannelFactory; … … 73 75 res.Add(allPeers.ElementAt(index)); 74 76 } 75 return res;77 return allPeers; 76 78 } 77 79 … … 90 92 91 93 private void SendHeartbeatToServer(object sender, ElapsedEventArgs e) { 92 try { 93 heartbeatClient.UpdateHeartbeat(myself); 94 lock (timerLock) { 95 try { 96 heartbeatClient.UpdateHeartbeat(myself); 97 } 98 catch { } //nothing to do 94 99 } 95 catch { } //nothing to do96 100 } 97 101
Note: See TracChangeset
for help on using the changeset viewer.