Skip to content

Commit 1b626bd

Browse files
author
Jan Nörtemann
committed
Fix: CancellationToken naming
1 parent 65e989f commit 1b626bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Uml.Robotics.Ros/Spinner.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ public void Spin()
3333
Logger.LogCritical("CallbackQueue thread broke out! This only can happen if ROS.ok is false.");
3434
}
3535

36-
public void Spin(CancellationToken token)
36+
public void Spin(CancellationToken cancel = default(CancellationToken))
3737
{
3838
Logger.LogInformation("Start spinning");
3939
while (ROS.OK)
4040
{
4141
callbackQueue.CallAvailable(ROS.WallDuration);
4242

43-
if (token.IsCancellationRequested)
43+
if (cancel.IsCancellationRequested)
4444
break;
4545

4646
Thread.Yield();

0 commit comments

Comments
 (0)