It's time to let your babies grow up to be cowboys. 🎶
This commit is contained in:
@@ -18,6 +18,7 @@ public class CanvasService {
|
||||
private IRedisService _redisService;
|
||||
private CanvasCommand _lastCommand = new();
|
||||
private List<CanvasCommand> _lsComms = new();
|
||||
private Guid _id = Guid.NewGuid();
|
||||
private bool _is_init = false,
|
||||
_is_started = false,
|
||||
_has_ended = false;
|
||||
@@ -54,11 +55,12 @@ public class CanvasService {
|
||||
while (!_has_ended) {
|
||||
if (_lsComms.Count > 0)
|
||||
_lsComms.Clear();
|
||||
_lsComms.AddRange(await _redisService.Consume());
|
||||
_lsComms.AddRange(await _redisService.Consume(_id.ToString()));
|
||||
if (_lsComms.Count == 1)
|
||||
Draw(_lsComms[0]);
|
||||
else if (_lsComms.Count > 0)
|
||||
Draw(_lsComms);
|
||||
Task.Delay(10);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user