MCPcopy Create free account
hub / github.com/e2wugui/zeze / stopAll

Method stopAll

ZezeJava/ZezeJavaTest/src/Zezex/TestGameTimer.java:149–161  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

147 }
148
149 private void stopAll() throws Exception {
150 for (var client : clients)
151 client.Stop();
152 Thread.sleep(100); // 防止client断开连接的时候,下面的provider关闭太快执行异常。这个异常实际上无所谓。
153 for (var server : servers)
154 server.stopBeforeModules();
155 for (var server : servers)
156 server.Stop();
157 for (var link : links)
158 link.Stop();
159 loginQueue.stop();
160 loginQueue = null;
161 }
162
163 private static void testContent(TimerContext context) {
164 TestBean bean = (TestBean)context.customData;

Callers 2

testRoleTimer1Method · 0.95
testRoleTimer2Method · 0.95

Calls 4

stopMethod · 0.65
StopMethod · 0.45
sleepMethod · 0.45
stopBeforeModulesMethod · 0.45

Tested by

no test coverage detected