Package appeng.me.cache.helpers

Examples of appeng.me.cache.helpers.ConnectionWrapper


          if ( sideA.connection != null )
          {
            if ( sideA.connection.connection != null )
            {
              sideA.connection.connection.destroy();
              sideA.connection = new ConnectionWrapper( null );
            }
          }

          if ( sideB.connection != null )
          {
            if ( sideB.connection.connection != null )
            {
              sideB.connection.connection.destroy();
              sideB.connection = new ConnectionWrapper( null );
            }
          }

          sideA.connection = sideB.connection = new ConnectionWrapper( AEApi.instance().createGridConnection( sideA.getNode(), sideB.getNode() ) );
        }
        catch (FailedConnection e)
        {
          // :(
        }
      }
      else
        shutdown = true;
    }
    else
      shutdown = true;

    if ( shutdown && connection != null )
    {
      if ( connection.connection != null )
      {
        connection.connection.destroy();
        connection.connection = null;
        connection = new ConnectionWrapper( null );
      }
    }
  }
View Full Code Here

TOP

Related Classes of appeng.me.cache.helpers.ConnectionWrapper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.