File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -441,6 +441,7 @@ bool SNESClassicFactory::asyncListDevices()
441441 if (socket->state () == QAbstractSocket::ConnectingState)
442442 {
443443 sDebug () << " This should not happen, socket already trying to connect" ;
444+ checkFailed (Error::DeviceFactoryError::DFE_SNESCLASSIC_NO_DEVICE);
444445 return false ;
445446 }
446447 if (socket->state () == QAbstractSocket::UnconnectedState)
@@ -453,7 +454,7 @@ bool SNESClassicFactory::asyncListDevices()
453454 sDebug () << " Timeout " << socket->state ();
454455 if (socket->state () == QAbstractSocket::ConnectingState)
455456 {
456- socket->close ();
457+ socket->disconnectFromHost ();
457458 this ->checkFailed (Error::DeviceFactoryError::DFE_SNESCLASSIC_NO_DEVICE);
458459 }
459460 });
You can’t perform that action at this time.
0 commit comments