Fix Socket >> #reopenIfPossible cvs_MAIN expecco_head_5844
authorStefan Vogel <sv@exept.de>
Thu, 15 Dec 2016 13:51:57 +0100
branchcvs_MAIN
changeset 3679 53b12bef0d40
parent 3678 758fe4dc7ff3
child 3682 4ed8b74fa61d
Fix Socket >> #reopenIfPossible to not send unimplemented message
extensions.st
--- 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>"