From 80c9333a5987997362753f992b4d5b665033e6b3 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Thu, 8 Nov 2012 15:55:01 +0100 Subject: pd_client: Close streams --- pd_client.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pd_client.pl b/pd_client.pl index 4938dd4..72742e6 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), - socket_close(Socket). + close(StreamIn), close(StreamOut), socket_close(Socket). launch(Module, StreamIn, StreamOut) :- atom_concat('rules/', Module, Path), consult(Path), -- cgit