@@ -113,7 +113,7 @@ - (void)executeWithArgs:(NSString *)args {
113
113
return ;
114
114
}
115
115
}
116
- if ([@" mosh2 " isEqualToString: self .sessionParams.childSessionType] && self.sessionParams .hasEncodedState ) {
116
+ if ([@" mosh1 " isEqualToString: self .sessionParams.childSessionType] && self.sessionParams .hasEncodedState ) {
117
117
// BlinkMosh *mosh = [[BlinkMosh alloc] initWithMcpSession: self device:_device andParams:self.sessionParams.childSessionParams];
118
118
MoshSession *mosh = [[MoshSession alloc ] initWithDevice: _device andParams: self .sessionParams.childSessionParams];
119
119
mosh.mcpSession = self;
@@ -214,8 +214,8 @@ - (BOOL)_runCommand:(NSString *)cmdline skipHistoryRecord: (BOOL) skipHistoryRec
214
214
if (self.sessionParams .hasEncodedState ) {
215
215
return NO ;
216
216
}
217
- } else if ([cmd isEqualToString: @" mosh2 " ]) {
218
- [self _runMosh2WithArgs : cmdline];
217
+ } else if ([cmd isEqualToString: @" mosh1 " ]) {
218
+ [self _runMosh1WithArgs : cmdline];
219
219
if (self.sessionParams .hasEncodedState ) {
220
220
return NO ;
221
221
}
@@ -306,10 +306,10 @@ - (void)_runMoshWithArgs:(NSString *)args
306
306
_childSession = nil ;
307
307
}
308
308
309
- - (void )_runMosh2WithArgs : (NSString *)args
309
+ - (void )_runMosh1WithArgs : (NSString *)args
310
310
{
311
311
self.sessionParams .childSessionParams = [[MoshParams alloc ] init ];
312
- self.sessionParams .childSessionType = @" mosh2 " ;
312
+ self.sessionParams .childSessionType = @" mosh1 " ;
313
313
// BlinkMosh *mosh = [[BlinkMosh alloc] initWithMcpSession: self device:_device andParams:self.sessionParams.childSessionParams];
314
314
// TODO Connect previous mosh
315
315
MoshSession *mosh = [[MoshSession alloc ] initWithDevice: _device andParams: self .sessionParams.childSessionParams];
0 commit comments