• 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

Revisão25e309d6731ce6f98bf088192a10ae3712a1d114 (tree)
Hora2021-11-11 21:27:10
Autorsebastian_bugiu
Commitersebastian_bugiu

Mensagem de Log

Reverted stupid bug because of robovm compiling stuff wrong.

Mudança Sumário

Diff

diff -r 30c9082e26f0 -r 25e309d6731c src/com/esotericsoftware/kryonet/Client.java
--- a/src/com/esotericsoftware/kryonet/Client.java Sun Oct 24 20:30:54 2021 +0300
+++ b/src/com/esotericsoftware/kryonet/Client.java Thu Nov 11 14:27:10 2021 +0200
@@ -353,7 +353,9 @@
353353 shutdown = false;
354354 while (!shutdown) {
355355 try {
356+// System.out.println("Calling update");
356357 update(250);
358+// System.out.println("Update called");
357359 } catch (IOException ex) {
358360 if (TRACE) {
359361 if (isConnected)
@@ -409,17 +411,29 @@
409411
410412 public void close () {
411413 super.close();
414+// System.out.println("close()");
412415 synchronized (updateLock) { // Blocks to avoid a select while the selector is used to bind the server connection.
413- }
414- // Select one last time to complete closing the socket.
415- if (!isClosed) {
416- isClosed = true;
417- selector.wakeup();
418- try {
419- selector.selectNow();
420- } catch (IOException ignored) {
416+
417+ // Select one last time to complete closing the socket.
418+ if (!isClosed) {
419+ isClosed = true;
420+// System.out.println("Calling wakeup() from close()");
421+ selector.wakeup();
422+// try {
423+// Thread.sleep(500);
424+// } catch (InterruptedException e) {
425+// e.printStackTrace();
426+// }
427+ try {
428+// System.out.println("Calling selectNow() from close()");
429+ selector.selectNow();
430+// System.out.println("Called selectNow() from close()");
431+ } catch (IOException ignored) {
432+ ignored.printStackTrace();
433+ }
421434 }
422435 }
436+// System.out.println("Exiting close()");
423437 }
424438
425439 /** Releases the resources used by this client, which may no longer be used. */
diff -r 30c9082e26f0 -r 25e309d6731c src/com/esotericsoftware/kryonet/Server.java
--- a/src/com/esotericsoftware/kryonet/Server.java Sun Oct 24 20:30:54 2021 +0300
+++ b/src/com/esotericsoftware/kryonet/Server.java Thu Nov 11 14:27:10 2021 +0200
@@ -575,12 +575,13 @@
575575 }
576576
577577 synchronized (updateLock) { // Blocks to avoid a select while the selector is used to bind the server connection.
578- }
579- // Select one last time to complete closing the socket.
580- selector.wakeup();
581- try {
582- selector.selectNow();
583- } catch (IOException ignored) {
578+
579+ // Select one last time to complete closing the socket.
580+ selector.wakeup();
581+ try {
582+ selector.selectNow();
583+ } catch (IOException ignored) {
584+ }
584585 }
585586 }
586587