File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -445,7 +445,7 @@ def _unregister_cleanup(self):
445
445
self ._cleanup = None
446
446
447
447
def __del__ (self ):
448
- self .close (timeout = 0 )
448
+ self .close ()
449
449
450
450
def close (self , timeout = None ):
451
451
"""Close this producer.
@@ -484,14 +484,10 @@ def close(self, timeout=None):
484
484
self ._sender .join (timeout )
485
485
486
486
if self ._sender is not None and self ._sender .is_alive ():
487
-
488
487
log .info ("Proceeding to force close the producer since pending"
489
488
" requests could not be completed within timeout %s." ,
490
489
timeout )
491
490
self ._sender .force_close ()
492
- # Only join the sender thread when not calling from callback.
493
- if not invoked_from_callback :
494
- self ._sender .join ()
495
491
496
492
self ._metrics .close ()
497
493
try :
You can’t perform that action at this time.
0 commit comments