feat: gracefully handle disconnects
This commit is contained in:
parent
2bc5bdc310
commit
21565a9726
|
@ -107,6 +107,10 @@ pub fn parse(self: *Self, allocator: Allocator, emu: Emulator) !String {
|
|||
's' => @panic("TODO: Step"),
|
||||
|
||||
// Optional
|
||||
'D' => {
|
||||
log.info("Disconneccting...", .{});
|
||||
return .{ .static = "OK" };
|
||||
},
|
||||
'H' => {
|
||||
log.warn("{s}", .{self.contents});
|
||||
|
||||
|
|
Loading…
Reference in New Issue