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):
445445 self ._cleanup = None
446446
447447 def __del__ (self ):
448- self .close (timeout = 0 )
448+ self .close ()
449449
450450 def close (self , timeout = None ):
451451 """Close this producer.
@@ -484,14 +484,10 @@ def close(self, timeout=None):
484484 self ._sender .join (timeout )
485485
486486 if self ._sender is not None and self ._sender .is_alive ():
487-
488487 log .info ("Proceeding to force close the producer since pending"
489488 " requests could not be completed within timeout %s." ,
490489 timeout )
491490 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 ()
495491
496492 self ._metrics .close ()
497493 try :
You can’t perform that action at this time.
0 commit comments