You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by jo...@apache.org on 2019/05/23 21:23:34 UTC
[royale-compiler] branch develop updated: royaleunit-ant-tasks:
stop timeout timer if server is stopped before the timeout
This is an automated email from the ASF dual-hosted git repository.
joshtynjala pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git
The following commit(s) were added to refs/heads/develop by this push:
new ba80ead royaleunit-ant-tasks: stop timeout timer if server is stopped before the timeout
ba80ead is described below
commit ba80ead630fab658a5c7d6768a2c673cfef92f6c
Author: Josh Tynjala <jo...@apache.org>
AuthorDate: Thu May 23 14:23:27 2019 -0700
royaleunit-ant-tasks: stop timeout timer if server is stopped before the timeout
---
.../java/org/apache/royale/test/ant/RoyaleUnitWebSocketServer.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/royaleunit-ant-tasks/src/main/java/org/apache/royale/test/ant/RoyaleUnitWebSocketServer.java b/royaleunit-ant-tasks/src/main/java/org/apache/royale/test/ant/RoyaleUnitWebSocketServer.java
index edee5cb..2d84f0e 100644
--- a/royaleunit-ant-tasks/src/main/java/org/apache/royale/test/ant/RoyaleUnitWebSocketServer.java
+++ b/royaleunit-ant-tasks/src/main/java/org/apache/royale/test/ant/RoyaleUnitWebSocketServer.java
@@ -54,6 +54,12 @@ public class RoyaleUnitWebSocketServer extends WebSocketServer implements IRoyal
public void stop() throws IOException, InterruptedException
{
LoggingUtil.log("\nStopping server ...");
+
+ if(timeoutTimer != null)
+ {
+ timeoutTimer.cancel();
+ timeoutTimer = null;
+ }
for(WebSocket socket : getConnections())
{