We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cfb61ea commit 32cf143Copy full SHA for 32cf143
1 file changed
OpenFlow/src/Messages/Message.ts
@@ -455,7 +455,12 @@ export class Message {
455
try {
456
msg = WatchMessage.assign(this.data);
457
if (NoderedUtil.IsNullEmpty(msg.jwt)) { msg.jwt = cli.jwt; }
458
- await cli.UnWatch(msg.id, msg.jwt);
+ if (Config.supports_watch) {
459
+ await cli.UnWatch(msg.id, msg.jwt);
460
+ } else {
461
+ msg.error = "Watch is not supported by this openflow";
462
+ }
463
+
464
msg.result = null;
465
} catch (error) {
466
if (NoderedUtil.IsNullUndefinded(msg)) { (msg as any) = {}; }
0 commit comments