mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-07-23 01:57:22 +00:00
Remove log.Fatal
This commit is contained in:
parent
be3608ba4b
commit
31b63e9d44
2 changed files with 6 additions and 2 deletions
|
|
@ -25,7 +25,10 @@ func (s *Session) RegisterBrowserClient() {
|
|||
log.Println("Received user SDP")
|
||||
localSession, err := s.peerconnection.StartClient(resp.Data, config.Width, config.Height)
|
||||
if err != nil {
|
||||
log.Fatalln(err)
|
||||
if err != nil {
|
||||
log.Println("Error: Cannot create new webrtc session", err)
|
||||
return cws.EmptyPacket
|
||||
}
|
||||
}
|
||||
|
||||
return cws.WSPacket{
|
||||
|
|
|
|||
|
|
@ -58,7 +58,8 @@ func (s *Session) RegisterOverlordClient() {
|
|||
oclient.peerconnections[resp.SessionID] = peerconnection
|
||||
|
||||
if err != nil {
|
||||
log.Fatalln(err)
|
||||
log.Println("Error: Cannot create new webrtc session", err)
|
||||
return cws.EmptyPacket
|
||||
}
|
||||
|
||||
return cws.WSPacket{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue