Skip to content

Commit

Permalink
Add missed RabbitUtils.clearPhysicalCloseRequired
Browse files Browse the repository at this point in the history
  • Loading branch information
artembilan committed Mar 16, 2021
1 parent bd7656c commit a043dc4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ buildscript {
ext.kotlinVersion = '1.3.72'
repositories {
maven { url 'https://plugins.gradle.org/m2' }
maven { url 'https://repo.spring.io/plugins-release' }
maven { url 'https://repo.spring.io/plugins-release-local' }
}
dependencies {
classpath 'org.asciidoctor:asciidoctorj-pdf:1.5.0-beta.5'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,12 +229,18 @@ public static void setPhysicalCloseRequired(Channel channel, boolean b) {
public static boolean isPhysicalCloseRequired() {
Boolean mustClose = physicalCloseRequired.get();
if (mustClose == null) {
mustClose = Boolean.FALSE;
return false;
}
else {
physicalCloseRequired.remove();
return mustClose;
}
return mustClose;
}

/**
* Clear the physicalCloseRequired flag.
*/
public static void clearPhysicalCloseRequired() {
physicalCloseRequired.remove();
}

/**
Expand Down

0 comments on commit a043dc4

Please sign in to comment.