modif
authorPierre Gabin FODOP GUMETE <gabinfodop@gmail.com>
Thu, 31 Jan 2019 17:27:23 +0000 (18:27 +0100)
committerPierre Gabin FODOP GUMETE <gabinfodop@gmail.com>
Thu, 31 Jan 2019 17:27:23 +0000 (18:27 +0100)
Change-Id: Icbc6cdfe014529ab435325d5fa72c216d20db5b8

src/afb-wsj1-test.cpp
src/afb-wsj1.hpp

index 90044ed..f355e1a 100644 (file)
@@ -1,8 +1,8 @@
 #include "afb-wsj1.hpp"
 
 void onreply(const char *value){
-       std::cout<< *value<<std::endl;
-       system("PAUSE");
+       std::cout << value << std::endl;
+    exit(0);
 }
 
 int main(int ac, char **av){
@@ -13,6 +13,6 @@ int main(int ac, char **av){
     afb::wsj1 sj1;
     sj1.connect(uri);
     sj1.call(api,verb,req,onreply);
-
+       system("PAUSE");
     return EXIT_SUCCESS;
 }
\ No newline at end of file
index fa236fa..2c18cf1 100644 (file)
@@ -143,6 +143,7 @@ sd_event *wsj1::eloop_() {
                    t.detach();
                }
        }
+       return el;
 }
 void wsj1::on_hangup_(struct afb_wsj1 *wsj1) {