mirror of
https://github.com/deavmi/doap
synced 2024-07-04 16:10:15 +02:00
CoapClient
- Made the `rollingMid` a `ushort` and fixed the `newMid()` method to return that
This commit is contained in:
parent
23260860f5
commit
5b67894b32
|
@ -48,7 +48,7 @@ public class CoapClient
|
|||
/**
|
||||
* Rolling Message ID
|
||||
*/
|
||||
private ulong rollingMid;
|
||||
private ushort rollingMid;
|
||||
private Mutex rollingLock;
|
||||
|
||||
/**
|
||||
|
@ -74,9 +74,9 @@ public class CoapClient
|
|||
init();
|
||||
}
|
||||
|
||||
package ulong newMid()
|
||||
package ushort newMid()
|
||||
{
|
||||
ulong newValue;
|
||||
ushort newValue;
|
||||
|
||||
// Lock rolling counter
|
||||
this.rollingLock.lock();
|
||||
|
|
Loading…
Reference in New Issue
Block a user