Skip to content

Commit

Permalink
Add missing close() call.
Browse files Browse the repository at this point in the history
  • Loading branch information
larsgeorge committed Apr 12, 2015
1 parent 1cacb36 commit d34aade
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ch05/src/main/java/admin/ServerAndRegionNameExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ public static void main(String[] args) throws IOException, InterruptedException
HRegionInfo info = location.getRegionInfo();
System.out.println("Region Name: " + info.getRegionNameAsString());
System.out.println("Server Name: " + location.getServerName());

// ^^ ServerAndRegionNameExample
locator.close();
admin.close();
connection.close();
// ^^ ServerAndRegionNameExample
}
}

0 comments on commit d34aade

Please sign in to comment.