test/jdk/com/sun/nio/sctp/SctpChannel/CommUp.java
changeset 59205 afcc8af048e6
parent 47216 71c04702a3d5
equal deleted inserted replaced
59204:7b10581e9632 59205:afcc8af048e6
     1 /*
     1 /*
     2  * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2009, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   189                     /* stop the server */
   189                     /* stop the server */
   190                     server.thread().interrupt();
   190                     server.thread().interrupt();
   191                 }
   191                 }
   192             } //for
   192             } //for
   193 
   193 
       
   194             try { sc.close(); }
       
   195             catch (IOException ioe) { unexpected(ioe); }
       
   196 
   194         } catch (IOException ioe) {
   197         } catch (IOException ioe) {
   195             unexpected(ioe);
   198             unexpected(ioe);
   196         } catch (InterruptedException ie) {
   199         } catch (InterruptedException ie) {
   197             unexpected(ie);
   200             unexpected(ie);
   198         }
   201         }