mirror of https://github.com/dani/vroom.git
Fix checking invitation reponse
This commit is contained in:
parent
44639502be
commit
5b0fc34888
6
vroom.pl
6
vroom.pl
|
@ -1481,8 +1481,10 @@ websocket '/socket.io/:ver/websocket/:id' => sub {
|
|||
)
|
||||
);
|
||||
}
|
||||
delete $peer->{check_invitations};
|
||||
$self->add_peer($id, $peer);
|
||||
if (keys %{$invitations} > 0){
|
||||
delete $peer->{check_invitations};
|
||||
$self->add_peer($id, $peer);
|
||||
}
|
||||
}
|
||||
$self->send(Protocol::SocketIO::Message->new( type => 'heartbeat' ));
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue