Skip to content

Commit

Permalink
If the queue is set, return it.
Browse files Browse the repository at this point in the history
  • Loading branch information
s0undt3ch committed Jan 12, 2020
1 parent 1ef11f6 commit 47db79e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions salt/log/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,9 @@ def get_multiprocessing_logging_queue():
global __MP_LOGGING_QUEUE
from salt.utils.platform import is_darwin

if __MP_LOGGING_QUEUE is not None:
return __MP_LOGGING_QUEUE

if __MP_IN_MAINPROCESS is False:
# We're not in the MainProcess, return! No Queue shall be instantiated
return __MP_LOGGING_QUEUE
Expand Down

0 comments on commit 47db79e

Please sign in to comment.