summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-11-08 20:58:21 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-11-08 20:58:21 +0100
commit8a4d56ac9cb75284dfcaeb094d68dd60f8fc45bc (patch)
tree0774fdb7ee9987721eaf89abe198ecd9ff43360f
parentcae86c996a852150dd81952cbe522dbcab632e98 (diff)
downloadwbs-8a4d56ac9cb75284dfcaeb094d68dd60f8fc45bc.tar.gz
wbs-8a4d56ac9cb75284dfcaeb094d68dd60f8fc45bc.tar.bz2
wbs-8a4d56ac9cb75284dfcaeb094d68dd60f8fc45bc.zip
Revert "pd_client: Close streams"
This reverts commit 80c9333a5987997362753f992b4d5b665033e6b3. Closing the streams gives following error: error(system_error('Bad file descriptor'),socket_close
-rw-r--r--pd_client.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/pd_client.pl b/pd_client.pl
index 497959a..94d1ad5 100644
--- a/pd_client.pl
+++ b/pd_client.pl
@@ -7,7 +7,7 @@ start(Module, Host, Port):-
socket_connect(Socket, 'AF_INET'(HostAddress, Port),
StreamIn, StreamOut),
launch(Module, StreamIn, StreamOut),
- close(StreamIn), close(StreamOut), socket_close(Socket).
+ socket_close(Socket).
launch(Module, StreamIn, StreamOut) :-
atom_concat('rules/', Module, Path), consult(Path),