Skip to content

Commit 02a0d97

Browse files
committed
hub/sagas: don't stop user program after connect
Since we now have periodic status messages, we don't need to do anything to get into a known state. This caused unexpected behavior when connecting to a hub that is already connected in a second window.
1 parent 3372097 commit 02a0d97

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/hub/sagas.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {
1414
takeEvery,
1515
} from 'typed-redux-saga/macro';
1616
import { alertsShowAlert } from '../alerts/actions';
17-
import { bleDidConnectPybricks } from '../ble/actions';
1817
import { didFailToWrite, didWrite, write } from '../ble-nordic-uart-service/actions';
1918
import { nordicUartSafeTxCharLength } from '../ble-nordic-uart-service/protocol';
2019
import {
@@ -429,6 +428,4 @@ export default function* (): Generator {
429428
yield* takeEvery(downloadAndRun, handleDownloadAndRun);
430429
yield* takeEvery(hubStartRepl, handleHubStartRepl);
431430
yield* takeEvery(hubStopUserProgram, handleStopUserProgram);
432-
// calling stop right after connecting should get the hub into a known state
433-
yield* takeEvery(bleDidConnectPybricks, handleStopUserProgram);
434431
}

0 commit comments

Comments
 (0)