Skip to content

Commit bc14da1

Browse files
authored
[ISSUE #3999]🐛NameServer runtime not shutting down in Drop (restored shutdown call) (#4000)
1 parent 0ba3554 commit bc14da1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rocketmq-namesrv/src/bootstrap.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,9 @@ impl NameServerRuntime {
173173
impl Drop for NameServerRuntime {
174174
#[inline]
175175
fn drop(&mut self) {
176-
// if let Some(runtime) = self.name_server_runtime.take() {
177-
// runtime.shutdown();
178-
// }
176+
if let Some(runtime) = self.name_server_runtime.take() {
177+
runtime.shutdown();
178+
}
179179
}
180180
}
181181

0 commit comments

Comments
 (0)