Browse Source

BSocket: assert that BSocket_GlobalInit has been called

ambrop7 14 years ago
parent
commit
8edc4af402
1 changed files with 2 additions and 1 deletions
  1. 2 1
      system/BSocket.c

+ 2 - 1
system/BSocket.c

@@ -639,9 +639,10 @@ fail0:
     return -1;
 }
 
+// NOTE: if you change something here, you might also have to change BSocket_Accept
 int BSocket_Init (BSocket *bs, BReactor *bsys, int domain, int type)
 {
-    // NOTE: if you change something here, you might also have to change BSocket_Accept
+    ASSERT(bsocket_initialized)
     
     // translate domain
     int sys_domain;