From 93f0b5fd70843af8d6542f38e45e1c6945848904 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 13 Jun 2011 16:27:32 +0200 Subject: [PATCH] transport: Add the socket to the list of finalizers This will close the socket when the transport is recycled --- callagent/SIPCallAgent.st | 1 + 1 file changed, 1 insertion(+) diff --git a/callagent/SIPCallAgent.st b/callagent/SIPCallAgent.st index bca603b..eec45c8 100644 --- a/callagent/SIPCallAgent.st +++ b/callagent/SIPCallAgent.st @@ -95,6 +95,7 @@ SIPTransport subclass: SIPUdpTransport [ initialize: anAddress [ sem := Semaphore forMutualExclusion. socket := Sockets.DatagramSocket local: anAddress port: 5060. + socket addToBeFinalized. ] start [