Commit f042a0c 1 parent a45b7ef commit f042a0c Copy full SHA for f042a0c
File tree 2 files changed +1
-5
lines changed
2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -485,7 +485,7 @@ func OpenControlsWindow(
485
485
486
486
app .AddWindow (& window .Window )
487
487
488
- s := make (chan os.Signal )
488
+ s := make (chan os.Signal , 1 )
489
489
signal .Notify (s , os .Interrupt , syscall .SIGTERM )
490
490
go func () {
491
491
<- s
Original file line number Diff line number Diff line change @@ -2,12 +2,10 @@ package main
2
2
3
3
import (
4
4
"context"
5
- "math/rand"
6
5
"net"
7
6
"os"
8
7
"path/filepath"
9
8
"strings"
10
- "time"
11
9
12
10
"github.com/diamondburned/gotk4-adwaita/pkg/adw"
13
11
"github.com/diamondburned/gotk4/pkg/gdk/v4"
@@ -123,8 +121,6 @@ func main() {
123
121
}
124
122
addr .Port = port
125
123
126
- rand .Seed (time .Now ().UnixNano ())
127
-
128
124
if err := os .MkdirAll (settings .String (resources .GSchemaStorageKey ), os .ModePerm ); err != nil {
129
125
panic (err )
130
126
}
You can’t perform that action at this time.
0 commit comments