Changeset 1254


Ignore:
Timestamp:
Mar 22, 2010, 9:19:07 PM (12 years ago)
Author:
arnold
Message:

P2PJobAdmin: Additional sending a RegMsg to the Manager, before sending a "free msg", so Mngr will add Worker to the Workerslist, if he had removed it because an alive message had been lost

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/PeerToPeerManager_NEW/P2PManagerBase_NEW.cs

    r1244 r1254  
    467467                else
    468468                {
     469                    //todo: insert sending "no more jobs left msg" to the free worker, so it can stop its Free-Msg-Timer
    469470                    GuiLogging("No more jobs left. So wait for the last results, than close this task.", NotificationLevel.Debug);
    470471                    if (OnNoMoreJobsLeft != null)
  • trunk/CrypPlugins/PeerToPeerSubscriber/P2PSubscriberBase.cs

    r1244 r1254  
    262262        }
    263263
     264        // added by Arnold - 2010.03.22
     265        // so Worker can send additional reg messages, if connection got lost
     266        public void SendRegMsg()
     267        {
     268            SendMessage(actualPublisher, PubSubMessageType.Register);
     269        }
     270
    264271        private void SendMessage(PeerId pubPeerId, PubSubMessageType msgType)
    265272        {
  • trunk/CrypPlugins/PeerToPeerWorker_NEW/P2PJobAdminBase.cs

    r1253 r1254  
    279279            if (!isWorking)
    280280            {
     281                base.SendRegMsg();
    281282                this.p2pControl.SendToPeer(JobMessages.CreateFreeWorkerStatusMessage(true), base.ActualPublisher);
    282283                GuiLogging("Because the last 'free worker'-Message got lost, try again.", NotificationLevel.Info);
Note: See TracChangeset for help on using the changeset viewer.