geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdam...@apache.org
Subject cvs commit: incubator-geronimo/modules/core/src/java/org/apache/geronimo/console/cli/controller TopLevel.java
Date Fri, 16 Jul 2004 06:35:55 GMT
gdamour     2004/07/15 23:35:55

  Modified:    modules/core/src/java/org/apache/geronimo/console/cli/controller
                        TopLevel.java
  Log:
  When disconnecting from the deployment server, the context was not updated accordingly.
  
  Revision  Changes    Path
  1.5       +7 -3      incubator-geronimo/modules/core/src/java/org/apache/geronimo/console/cli/controller/TopLevel.java
  
  Index: TopLevel.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/core/src/java/org/apache/geronimo/console/cli/controller/TopLevel.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- TopLevel.java	16 Jul 2004 04:39:41 -0000	1.4
  +++ TopLevel.java	16 Jul 2004 06:35:55 -0000	1.5
  @@ -86,8 +86,12 @@
                           continue;
                       }
                       println("Disconnecting from deployment server...");
  -                    context.deployer.release();
  -                    println("Disconnected.");
  +                    try {
  +                        context.deployer.release();
  +                    } finally {
  +                        println("Disconnected.");
  +                        context.connected = false;
  +                    }
                       break;
                   } else if(choice.equals("q")) {
                       return;
  
  
  

Mime
View raw message