Skip to content

Commit

Permalink
Revert Libretro + SDL shutdown wait hack
Browse files Browse the repository at this point in the history
  • Loading branch information
sergystepanov committed Oct 20, 2023
1 parent bfe97e6 commit 1d595da
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/worker/room/room_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"runtime"
"sync"
"testing"
"time"

"github.com/giongto35/cloud-game/v3/pkg/com"
"github.com/giongto35/cloud-game/v3/pkg/config"
Expand Down Expand Up @@ -56,6 +57,11 @@ type conf struct {
noLog bool
}

func (r testRoom) Close() {
r.Room.Close()
time.Sleep(1 * time.Second) // hack: wait room destruction (atm impossible to tell)
}

func (r testRoom) WaitFrame(n int) app.RawFrame {
var wg sync.WaitGroup
wg.Add(1)
Expand Down

0 comments on commit 1d595da

Please sign in to comment.