Fixed buffer not moving users from curr to log, fixed controller randomly crashing ^_^
This commit is contained in:
parent
1c3b01a243
commit
e69d2b3954
2 changed files with 3 additions and 2 deletions
|
@ -27,6 +27,7 @@ Buffer::user::user(Socket::Connection fd){
|
|||
/// Drops held DTSC::Ring class, if one is held.
|
||||
Buffer::user::~user(){
|
||||
Stream::get()->dropRing(myRing);
|
||||
Disconnect("User disconnected");
|
||||
}//destructor
|
||||
|
||||
/// Disconnects the current user. Doesn't do anything if already disconnected.
|
||||
|
|
|
@ -396,9 +396,9 @@ int main(int argc, char ** argv){
|
|||
}
|
||||
}
|
||||
|
||||
Incoming = API_Socket.accept();
|
||||
Incoming = API_Socket.accept(true);
|
||||
if (Incoming.connected()){users.push_back(Incoming);}
|
||||
Incoming = Stats_Socket.accept();
|
||||
Incoming = Stats_Socket.accept(true);
|
||||
if (Incoming.connected()){buffers.push_back(Incoming);}
|
||||
if (buffers.size() > 0){
|
||||
for( std::vector< Socket::Connection >::iterator it = buffers.begin(); it != buffers.end(); it++) {
|
||||
|
|
Loading…
Add table
Reference in a new issue