1
0
Fork 0

socket: Make sure the socket is set to nil at the end of the block

This commit is contained in:
Holger Hans Peter Freyther 2013-06-17 15:21:07 +02:00
parent 6f7e0bcf8d
commit 4ce74bd5eb
1 changed files with 2 additions and 1 deletions

View File

@ -73,7 +73,8 @@ supervising the RX/TX process and re-starting.'>
<category: 'connect'>
tx_proc ifNotNil: [tx_proc terminate].
rx_proc ifNotNil: [rx_proc terminate].
socket ifNotNil: [socket close. socket := nil]
socket ifNotNil:
[[socket close.] ensure: [ socket := nil ]].
]
driveDispatch [