Fixed OutOfMemory error if initializing fails (#10924)
Signed-off-by: Gerhard Riegler <gerhard.riegler@gmail.com>
This commit is contained in:
parent
b043d8f4bc
commit
69bc7183d6
@ -133,6 +133,7 @@ public class GardenaSmartImpl implements GardenaSmart, GardenaSmartWebSocketList
|
||||
startWebsockets();
|
||||
initialized = true;
|
||||
} catch (Exception ex) {
|
||||
dispose();
|
||||
throw new GardenaException(ex.getMessage(), ex);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user