Revisão | 30c9082e26f079085f085d77e0c61b04f5bea5bf (tree) |
---|---|
Hora | 2021-10-25 02:30:54 |
Autor | Sebastian Bugiu <sebastian.bugiu@head...> |
Commiter | Sebastian Bugiu |
Added more debug messages in case the server or client thread crashes. Now it shouldn't do so silently.
@@ -377,6 +377,9 @@ | ||
377 | 377 | } |
378 | 378 | close(); |
379 | 379 | throw ex; |
380 | + } catch (Throwable ex) { | |
381 | + if (ERROR) error("kryonet", "Error updating client connection.", ex); | |
382 | + close(); | |
380 | 383 | } |
381 | 384 | } |
382 | 385 | if (TRACE) trace("kryonet", "Client thread stopped."); |
@@ -389,7 +389,7 @@ | ||
389 | 389 | while (!shutdown) { |
390 | 390 | try { |
391 | 391 | update(250); |
392 | - } catch (IOException ex) { | |
392 | + } catch (Throwable ex) { | |
393 | 393 | if (ERROR) error("kryonet", "Error updating server connections.", ex); |
394 | 394 | close(); |
395 | 395 | } |