Merge "Fix Notification listener blocking behavior"
This commit is contained in:
commit
d348790921
@ -14,6 +14,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import abc
|
import abc
|
||||||
|
import time
|
||||||
|
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_utils import timeutils
|
from oslo_utils import timeutils
|
||||||
@ -51,6 +52,7 @@ def batch_poll_helper(func):
|
|||||||
else:
|
else:
|
||||||
# timeout reached or listener stopped
|
# timeout reached or listener stopped
|
||||||
break
|
break
|
||||||
|
time.sleep(0)
|
||||||
return incomings
|
return incomings
|
||||||
return wrapper
|
return wrapper
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user