added some assertions to check for errors in network code
This commit is contained in:
parent
0088858cf7
commit
42aab8cc9e
1 changed files with 2 additions and 0 deletions
|
@ -269,6 +269,7 @@ connection connect(const std::string& host, int port)
|
|||
}
|
||||
|
||||
sockets.push_back(connect);
|
||||
wassert(schemas.count(connect) == 0);
|
||||
schemas.insert(std::pair<network::connection,schema_pair>(connect,schema_pair()));
|
||||
|
||||
return connect;
|
||||
|
@ -357,6 +358,7 @@ connection accept_connection()
|
|||
}
|
||||
|
||||
sockets.push_back(connect);
|
||||
wassert(schemas.count(connect) == 0);
|
||||
schemas.insert(std::pair<network::connection,schema_pair>(connect,schema_pair()));
|
||||
return connect;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue