Version 3.1.4: error handling for traces in Server nikiroo-utils-3.1.4
authorNiki Roo <niki@nikiroo.be>
Wed, 29 Nov 2017 22:27:36 +0000 (23:27 +0100)
committerNiki Roo <niki@nikiroo.be>
Wed, 29 Nov 2017 22:27:36 +0000 (23:27 +0100)
VERSION
changelog.md
src/be/nikiroo/utils/serial/server/ServerBridge.java
src/be/nikiroo/utils/serial/server/ServerObject.java
src/be/nikiroo/utils/serial/server/ServerString.java

diff --git a/VERSION b/VERSION
index ff365e06b9577c96dfeadddb8c4cccb09b85665c..0aec50e6ede78cfcb00d159fc0932ce35a80cb87 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-3.1.3
+3.1.4
index 810d0e19463e310950dc4fe66af9a71be8d6048f..f762aac195c7bc7fe084eeaf2f80dc271d111ce2 100644 (file)
@@ -1,5 +1,9 @@
 # nikiroo-utils
 
+## Version 3.1.4
+
+- Fix error handling for tracers in Server
+
 ## Version 3.1.3
 
 - Fix ImageUtils.fromStream with non-resetable streams
index 251e75a99a9cdb10d1b282a90cd4c9940a326aef..60312bbe2dc4d0285f85feb79202c6372f2c1cbe 100644 (file)
@@ -128,6 +128,11 @@ public class ServerBridge extends Server {
                                                        bridge.send(fromServer);
                                                }
                                        }
+
+                                       @Override
+                                       protected void onError(Exception e) {
+                                               getTraceHandler().error(e);
+                                       }
                                }.connect();
                        }
                };
index fdbd2cd4d93fe2bcb2b14fa6e44d9814e27c6400..67dfa4a020d3a0cb8f8a70446298ddb7e0b0f7ee 100644 (file)
@@ -70,6 +70,11 @@ abstract public class ServerObject extends Server {
                                        // Client has no data any more, we quit
                                }
                        }
+
+                       @Override
+                       protected void onError(Exception e) {
+                               getTraceHandler().error(e);
+                       }
                };
        }
 
index 186afa07ed6d2c85f94e7e2db1d7f5dfd601efc5..78436813f584a1220c6bf478f3f567a072e15b24 100644 (file)
@@ -71,6 +71,11 @@ abstract public class ServerString extends Server {
                                        send(rep);
                                }
                        }
+
+                       @Override
+                       protected void onError(Exception e) {
+                               getTraceHandler().error(e);
+                       }
                };
        }