transport: Add the socket to the list of finalizers
This will close the socket when the transport is recycled
This commit is contained in:
parent
b0ef812e6c
commit
93f0b5fd70
|
@ -95,6 +95,7 @@ SIPTransport subclass: SIPUdpTransport [
|
|||
initialize: anAddress [
|
||||
sem := Semaphore forMutualExclusion.
|
||||
socket := Sockets.DatagramSocket local: anAddress port: 5060.
|
||||
socket addToBeFinalized.
|
||||
]
|
||||
|
||||
start [
|
||||
|
|
Reference in New Issue