[java-shib-shared] 01/02: Null out server field in case start/stop get called multiple times.

Codeberg noreply at shibboleth.net
Wed Jul 8 18:19:01 UTC 2026


This is an automated email from the git hooks/post-receive script.

codeberg pushed a commit to branch main
in repository java-shib-shared.

View the commit online:
https://codeberg.org/Shibboleth/java-shib-shared/commit/4acaecc02e656f0e4998b6a47b627ae0be6462d2

commit 4acaecc02e656f0e4998b6a47b627ae0be6462d2
Author: Scott Cantor <scott at restingparrotsoftware.com>
AuthorDate: Wed Jul 8 14:16:44 2026 -0400

    Null out server field in case start/stop get called multiple times.
---
 .../src/main/java/net/shibboleth/shared/testing/EmbeddedJetty.java   | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/shib-testing/src/main/java/net/shibboleth/shared/testing/EmbeddedJetty.java b/shib-testing/src/main/java/net/shibboleth/shared/testing/EmbeddedJetty.java
index c0e70ac4..e6665fe7 100644
--- a/shib-testing/src/main/java/net/shibboleth/shared/testing/EmbeddedJetty.java
+++ b/shib-testing/src/main/java/net/shibboleth/shared/testing/EmbeddedJetty.java
@@ -48,7 +48,7 @@ import net.shibboleth.shared.resource.Resource;
 import net.shibboleth.shared.spring.resource.ResourceHelper;
 
 /**
- * Testing fixture using Jetty to server a specified handler.
+ * Testing fixture using Jetty to serve a specified handler.
  */
 public class EmbeddedJetty {
 
@@ -128,6 +128,7 @@ public class EmbeddedJetty {
         if (jettyServer != null) {
             try {
                 jettyServer.stop();
+                jettyServer = null;
             } catch (final Exception e) {
                 throw new RuntimeException("Jetty stop failed", e);
             }
@@ -144,7 +145,7 @@ public class EmbeddedJetty {
     }    
     
     /**
-     * Jetty handler to server content.
+     * Jetty handler to serve content.
      */
     public static class ResourceHandler extends Handler.Abstract {
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list