Browse Source

fix return

Philipp Friedenberger 10 years ago
parent
commit
c0a952e971
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/CivetServer.cpp

+ 1 - 1
src/CivetServer.cpp

@@ -57,7 +57,7 @@ int CivetServer::requestHandler(struct mg_connection *conn, void *cbdata)
     assert(me != NULL);
 
     // Happens when a request hits the server before the context is saved
-    if (me->context == NULL) return;
+    if (me->context == NULL) return 0;
 
     mg_lock_context(me->context);
     me->connections[conn] = CivetConnection();