ElectronWorkstation.st
changeset 8835 1c6fe641f815
parent 8834 d6c5483bf5c0
child 8844 71867baa556e
--- a/ElectronWorkstation.st	Tue Oct 15 12:38:01 2019 +0200
+++ b/ElectronWorkstation.st	Tue Oct 15 18:12:48 2019 +0200
@@ -142,7 +142,7 @@
 isOpen
     "return true, if there is a valid connection to the display"
 
-    ^ bridge notNil
+    ^ bridge notNil and:[bridge isConnected]
 ! !
 
 !ElectronWorkstation methodsFor:'event handling'!
@@ -315,10 +315,11 @@
 !
 
 destroyView:aView withId:aWindowHandle
-    bridge 
-        invokeMethod:'close' 
-        object:aWindowHandle 
-        arguments:#()
+    aWindowHandle close.
+    "/ bridge 
+    "/     invokeMethod:'close' 
+    "/     object:aWindowHandle 
+    "/     arguments:#()
 !
 
 mapWindow:aWindowId