]> git.meshlink.io Git - meshlink/commitdiff
Merge remote-tracking branch 'origin/everbase' into discovery
authorNiklas Hofmann <niklas.hofmann@everbase.net>
Wed, 30 Jul 2014 22:40:28 +0000 (00:40 +0200)
committerNiklas Hofmann <niklas.hofmann@everbase.net>
Wed, 30 Jul 2014 22:40:28 +0000 (00:40 +0200)
1  2 
src/meshlink.c
src/meshlink_internal.h

diff --cc src/meshlink.c
index d33c0d172914631b6946b8f8b1dfc33aa9147068,9fc80153d48210b0cbb60f7c7793b673c4e090cd..f9e7e9054d291c308b6987a6d4460794e6c030f7
@@@ -832,12 -862,11 +867,14 @@@ bool meshlink_start(meshlink_handle_t *
  }
  
  void meshlink_stop(meshlink_handle_t *mesh) {
-       if(!mesh)
+       if(!mesh) {
+               meshlink_errno = MESHLINK_EINVAL;
                return;
+       }
  
 +      // Stop discovery
 +      discovery_stop(mesh);
 +
        // Shut down the listening sockets to signal the main thread to shut down
  
        for(int i = 0; i < mesh->listen_sockets; i++) {
Simple merge