Exit if max_threads == 0
Exit if max_threads == 0

Fixes #866
puma/puma,ngpestelos/puma,respire/puma,eileencodes/puma,eileencodes/puma,respire/puma,prathamesh-sonpatki/puma,prathamesh-sonpatki/puma,kyledrake/puma,ngpestelos/puma,looker/puma,unleashed/puma,eileencodes/puma,looker/puma,puma/puma,wallclockbuilder/puma,kyledrake/puma,wallclockbuilder/puma,looker/puma,unleashed/puma,unleashed/puma,eileencodes/puma,prathamesh-sonpatki/puma,prathamesh-sonpatki/puma,respire/puma,ngpestelos/puma,puma/puma,respire/puma,ngpestelos/puma,wallclockbuilder/puma,wallclockbuilder/puma,kyledrake/puma,kyledrake/puma,unleashed/puma,looker/puma,puma/puma