diff --git a/core/src/main/java/hudson/Launcher.java b/core/src/main/java/hudson/Launcher.java
index 278d03c410d385fbe4c09161a54705a11d08a42a..62dbc7c6e13044ae76a85dcc89c1ce277132d57e 100644
--- a/core/src/main/java/hudson/Launcher.java
+++ b/core/src/main/java/hudson/Launcher.java
@@ -1327,11 +1327,7 @@ public abstract class Launcher {
Channel taskChannel = null;
try {
// Sync IO will fail automatically if the channel is being closed, no need to use getOpenChannelOrFail()
- // TODOL Replace by Channel#currentOrFail() when Remoting version allows
- taskChannel = Channel.current();
- if (taskChannel == null) {
- throw new IOException("No Remoting channel associated with this thread");
- }
+ taskChannel = Channel.currentOrFail();
taskChannel.syncIO();
} catch (Throwable t) {
// this includes a failure to sync, agent.jar too old, etc
diff --git a/pom.xml b/pom.xml
index c701a0736e604f25eb9bbd88773e755bb8d1e1d6..5827b0bf6e08dbda57611085a41d75a4c2cf6636 100755
--- a/pom.xml
+++ b/pom.xml
@@ -105,7 +105,7 @@ THE SOFTWARE.
3.35
- 3.4
+ 3.14
Max