File tree 1 file changed +3
-3
lines changed
EdgeAgentSDK/EdgeAgent/Sources/DIDCommAgent
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ public class DIDCommAgent {
10
10
case stopped
11
11
case starting
12
12
case running
13
- case stoping
13
+ case stopping
14
14
}
15
15
16
16
/// Represents the current state of the agent.
@@ -149,7 +149,7 @@ public class DIDCommAgent {
149
149
150
150
/**
151
151
This function is used to stop the EdgeAgent.
152
- The function sets the state of EdgeAgent to .stoping .
152
+ The function sets the state of EdgeAgent to .stopping .
153
153
All ongoing events that was created by the EdgeAgent are stopped.
154
154
After all the events are stopped the state of the EdgeAgent is set to .stopped.
155
155
@@ -158,7 +158,7 @@ public class DIDCommAgent {
158
158
public func stop( ) async throws {
159
159
guard state == . running else { return }
160
160
logger. info ( message: " Stoping agent " )
161
- state = . stoping
161
+ state = . stopping
162
162
cancellables. forEach { $0. cancel ( ) }
163
163
connectionManager? . stopAllEvents ( )
164
164
state = . stopped
You can’t perform that action at this time.
0 commit comments