Commit d374bef
committed
fix: setVars() checks the thread like the rest of the handle
The constructor is not a gate, see the handle's other methods: a caller
that got hold of one some other way would otherwise publish vars from a
thread that is not a background worker, where the Go side has no slot to
put them in.1 parent 2e985ad commit d374bef
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1503 | 1503 | | |
1504 | 1504 | | |
1505 | 1505 | | |
1506 | | - | |
1507 | | - | |
1508 | 1506 | | |
1509 | 1507 | | |
1510 | 1508 | | |
1511 | 1509 | | |
1512 | 1510 | | |
1513 | 1511 | | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
1514 | 1516 | | |
1515 | 1517 | | |
1516 | 1518 | | |
| |||
0 commit comments