socket: Make sure the socket is set to nil at the end of the block
This commit is contained in:
parent
6f7e0bcf8d
commit
4ce74bd5eb
|
@ -73,7 +73,8 @@ supervising the RX/TX process and re-starting.'>
|
||||||
<category: 'connect'>
|
<category: 'connect'>
|
||||||
tx_proc ifNotNil: [tx_proc terminate].
|
tx_proc ifNotNil: [tx_proc terminate].
|
||||||
rx_proc ifNotNil: [rx_proc terminate].
|
rx_proc ifNotNil: [rx_proc terminate].
|
||||||
socket ifNotNil: [socket close. socket := nil]
|
socket ifNotNil:
|
||||||
|
[[socket close.] ensure: [ socket := nil ]].
|
||||||
]
|
]
|
||||||
|
|
||||||
driveDispatch [
|
driveDispatch [
|
||||||
|
|
Reference in New Issue