Er oh the crash was because I was still using the lock-friendly code. Will still apply the change to memory allocation because memory reuse.
This commit is contained in:
parent
19227080da
commit
c180703373
|
@ -249,7 +249,8 @@ mainloop:
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case curtime := <-ticker:
|
case curtime := <-ticker:
|
||||||
l.SetText(curtime.String())
|
// l.SetText(curtime.String())
|
||||||
|
_=curtime
|
||||||
case <-w.Closing:
|
case <-w.Closing:
|
||||||
break mainloop
|
break mainloop
|
||||||
case <-b.Clicked:
|
case <-b.Clicked:
|
||||||
|
|
Loading…
Reference in New Issue