]> git.basschouten.com Git - openhab-addons.git/commitdiff
Fixed OutOfMemory error if initializing fails (#10924)
authorGerhard Riegler <gerhard.riegler@gmail.com>
Thu, 15 Jul 2021 17:48:01 +0000 (19:48 +0200)
committerGitHub <noreply@github.com>
Thu, 15 Jul 2021 17:48:01 +0000 (19:48 +0200)
Signed-off-by: Gerhard Riegler <gerhard.riegler@gmail.com>
bundles/org.openhab.binding.gardena/src/main/java/org/openhab/binding/gardena/internal/GardenaSmartImpl.java

index cc6d38e78dc92472280ce4a160c2d42eceff7802..0624f74e06b014dc858345f4fc2fc4a68a105dcd 100644 (file)
@@ -133,6 +133,7 @@ public class GardenaSmartImpl implements GardenaSmart, GardenaSmartWebSocketList
             startWebsockets();
             initialized = true;
         } catch (Exception ex) {
+            dispose();
             throw new GardenaException(ex.getMessage(), ex);
         }
     }