Skip to content

Commit

Permalink
Fixed OutOfMemory error if initializing fails (#10924)
Browse files Browse the repository at this point in the history
Signed-off-by: Gerhard Riegler <gerhard.riegler@gmail.com>
  • Loading branch information
gerrieg committed Jul 15, 2021
1 parent b043d8f commit 69bc718
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ public GardenaSmartImpl(String id, GardenaConfig config, GardenaSmartEventListen
startWebsockets();
initialized = true;
} catch (Exception ex) {
dispose();
throw new GardenaException(ex.getMessage(), ex);
}
}
Expand Down

0 comments on commit 69bc718

Please sign in to comment.