Changeset 1504


Ignore:
Timestamp:
May 26, 2010, 5:08:48 PM (12 years ago)
Author:
Paul Lelgemann
Message:

o Fixed P2PEditor not loading / throwing exceptions

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypP2P/P2PManager.cs

    r1477 r1504  
    3333        private P2PManager()
    3434        {
     35            P2PBase = new P2PBase();
     36            P2PSettings = new P2PSettings();
     37            P2PBase.AllowLoggingToMonitor = P2PSettings.Log2Monitor;
     38
     39            // Register events
     40
     41            // to forward event from overlay/dht MessageReceived-Event from P2PBase
     42            P2PBase.OnP2PMessageReceived += p2pBase_OnP2PMessageReceived;
     43
     44            // Register exit event to terminate P2P connection without loosing data
     45            // TODO check if this is correct, should be - but handler is not called (and application does not shut down), probably unrelated to this problem
     46            Application.ApplicationExit += HandleDisconnectByApplicationShutdown;
    3547        }
    3648
     
    5971
    6072        #endregion Events
    61 
    62         /// <summary>
    63         /// Initialises variables and important environment settings
    64         /// regarding certificates.
    65         /// </summary>
    66         public void Initialize()
    67         {
    68             P2PBase = new P2PBase();
    69             P2PSettings = new P2PSettings();
    70             P2PBase.AllowLoggingToMonitor = P2PSettings.Log2Monitor;
    71 
    72             // Register events
    73 
    74             // to forward event from overlay/dht MessageReceived-Event from P2PBase
    75             P2PBase.OnP2PMessageReceived += p2pBase_OnP2PMessageReceived;
    76 
    77             // Register exit event to terminate P2P connection without loosing data
    78             // TODO check if this is correct, should be - but handler is not called (and application does not shut down), probably unrelated to this problem
    79             Application.ApplicationExit += HandleDisconnectByApplicationShutdown;
    80         }
    8173
    8274        public bool P2PConnected()
Note: See TracChangeset for help on using the changeset viewer.