--- a/extensions.st Wed Dec 14 16:22:07 2016 +0100
+++ b/extensions.st Thu Dec 15 13:51:57 2016 +0100
@@ -1888,12 +1888,10 @@
"If the socket was listening (server-sockets), try to reopen it"
listening ifFalse:[ ^ self ].
- [
- self domain:domain type:socketType protocol:protocol reuseAddress:true.
- self bindTo:port address:nil.
+ OpenError catch:[
+ self domain:domain type:socketType protocol:protocol.
+ self bindTo:port address:nil reuseAddress:true.
self listenFor: 5
- ] on: OpenError do:[
- "Nothing, socket could not be reopened"
].
"Created: / 17-08-2012 / 15:43:44 / Jan Vrany <jan.vrany@fit.cvut.cz>"