Skip to content

Commit 5e7562c

Browse files
authored
Merge pull request #1 from Technolution/feature/fix_tcp_connection
set input and output stream for TCP transport to get TCP DBUS connect…
2 parents f33fd8a + 043bdc6 commit 5e7562c

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)