]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/base/AsyncJobCalls.h
Source Format Enforcement (#763)
[thirdparty/squid.git] / src / base / AsyncJobCalls.h
index 0f77d5f2e997dabbd68ffd6888df4b239f252b9e..bb7568523eecbdc2e186613b46d0aa216960d772 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1996-2016 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
  *
  * Squid software is distributed under GPLv2+ license and includes
  * contributions from numerous individuals and organizations.
@@ -46,12 +46,13 @@ private:
 
 /// schedule an async job call using a dialer; use CallJobHere macros instead
 template <class Dialer>
-bool
+AsyncCall::Pointer
 CallJob(int debugSection, int debugLevel, const char *fileName, int fileLine,
         const char *callName, const Dialer &dialer)
 {
     AsyncCall::Pointer call = asyncCall(debugSection, debugLevel, callName, dialer);
-    return ScheduleCall(fileName, fileLine, call);
+    ScheduleCall(fileName, fileLine, call);
+    return call;
 }
 
 #define CallJobHere(debugSection, debugLevel, job, Class, method) \