diff --git a/lib/jenkins_api_client/job.rb b/lib/jenkins_api_client/job.rb
index <HASH>..<HASH> 100644
--- a/lib/jenkins_api_client/job.rb
+++ b/lib/jenkins_api_client/job.rb
@@ -285,7 +285,7 @@ module JenkinsApi
         is_building = @client.api_get_request(
           "/job/#{job_name}/#{build_number}"
         )["building"]
-        if is_building == "true"
+        if is_building
           @client.api_post_request("/job/#{job_name}/#{build_number}/stop")
         end
       end
Issue #<I> - [Job] - reverting previous changes as the API does return as true/false