Skip to content

Commit 043bdc6

Browse files
committed
set input and output stream for TCP transport to get TCP DBUS connections working again
1 parent f33fd8a commit 043bdc6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

dbus-java/src/main/java/org/freedesktop/dbus/connections/transports/TcpTransport.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ void connect() throws IOException {
3838
socket = new Socket();
3939
socket.connect(new InetSocketAddress(getAddress().getHost(), getAddress().getPort()));
4040
}
41-
41+
42+
setInputReader(socket.getInputStream());
43+
setOutputWriter(socket.getOutputStream());
4244
getLogger().trace("Setting timeout to {} on Socket", getTimeout());
4345
socket.setSoTimeout(getTimeout());
4446

0 commit comments

Comments
 (0)