• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision30c9082e26f079085f085d77e0c61b04f5bea5bf (tree)
Time2021-10-25 02:30:54
AuthorSebastian Bugiu <sebastian.bugiu@head...>
CommiterSebastian Bugiu

Log Message

Added more debug messages in case the server or client thread crashes. Now it shouldn't do so silently.

Change Summary

Incremental Difference

diff -r 6457fd762694 -r 30c9082e26f0 src/com/esotericsoftware/kryonet/Client.java
--- a/src/com/esotericsoftware/kryonet/Client.java Sun Oct 24 17:00:08 2021 +0300
+++ b/src/com/esotericsoftware/kryonet/Client.java Sun Oct 24 20:30:54 2021 +0300
@@ -377,6 +377,9 @@
377377 }
378378 close();
379379 throw ex;
380+ } catch (Throwable ex) {
381+ if (ERROR) error("kryonet", "Error updating client connection.", ex);
382+ close();
380383 }
381384 }
382385 if (TRACE) trace("kryonet", "Client thread stopped.");
diff -r 6457fd762694 -r 30c9082e26f0 src/com/esotericsoftware/kryonet/Server.java
--- a/src/com/esotericsoftware/kryonet/Server.java Sun Oct 24 17:00:08 2021 +0300
+++ b/src/com/esotericsoftware/kryonet/Server.java Sun Oct 24 20:30:54 2021 +0300
@@ -389,7 +389,7 @@
389389 while (!shutdown) {
390390 try {
391391 update(250);
392- } catch (IOException ex) {
392+ } catch (Throwable ex) {
393393 if (ERROR) error("kryonet", "Error updating server connections.", ex);
394394 close();
395395 }