Skip to content

Commit

Permalink
Remove broken curl_close() call
Browse files Browse the repository at this point in the history
  • Loading branch information
Jokeswar committed Oct 17, 2024
1 parent bb0a234 commit 9aa8e38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# VMChecker Next

VMChecker Next is a block-type plugin. It is a solution developed for programming assignments,
VMChecker Next is a block type plugin. It is a solution developed for programming assignments,
allowing teachers to create automatic checkers.

User documentation is available at: https://github.com/open-education-hub/vmchecker-next/wiki.

Issues can be opened at: https://github.com/open-education-hub/vmchecker-next/issues.
User documentation available at: https://github.com/systems-cs-pub-ro/vmchecker-next/wiki.
Issues can be opened at: https://github.com/systems-cs-pub-ro/vmchecker-next/issues.

# Want to Help?
See [CONTRIBUTING.md](https://github.com/open-education-hub/vmchecker-next/blob/master/CONTRIBUTING.md) for details.
4 changes: 1 addition & 3 deletions classes/listener/observer.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,12 @@ private static function stop_previous_attempt($assignid) {

$backendurl = get_config('block_vmchecker', 'backend');
$api = new \block_vmchecker\backend\api($backendurl);
$rawdata = $api->cancel($previousattempt->uuid );
$rawdata = $api->cancel($previousattempt->uuid);

if ($rawdata === false) {
return false;
}

curl_close($ch);

$DB->delete_records('block_vmchecker_submissions', array('id' => $previousattempt->id));
return true;
}
Expand Down

0 comments on commit 9aa8e38

Please sign in to comment.